Skip to content

Conversation

@himaniraghav3
Copy link
Collaborator

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-589

What's in this PR?

Only show 3 skills and show a counter with tooltip for the rest

return (
<div className={styles.skillsContainer}>
{visibleSkills.map(skill => (
<div key={skill.id} className={styles.skillPill}>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider specifying the type for skill in the map function to improve type safety and readability.

{remainingSkills.length > 0 && (
<div
className={styles.skillPill}
title={remainingSkills.map(skill => skill.name)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using Array.prototype.join without a separator defaults to a comma, which is fine here, but it might be clearer to explicitly specify the separator as ', ' for readability.

@himaniraghav3 himaniraghav3 merged commit 9d945ef into dev Apr 25, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants