Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Conversation

siderdk
Copy link

@siderdk siderdk commented Mar 31, 2025

Thank you in advance dear Mentor

<NavItem title={navbarItems[0].title} link={navbarItems[0].link} isActive={navbarItems[0].link === currentPath} />
<NavItem title={navbarItems[1].title} link={navbarItems[1].link} isActive={navbarItems[1].link === currentPath} />
<NavItem title={navbarItems[2].title} link={navbarItems[2].link} isActive={navbarItems[2].link === currentPath} />

Choose a reason for hiding this comment

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

Here instead of calling NavItem multiple times you could rely on map to make it cleaner and more modular :)

Copy link

@desafree desafree Apr 10, 2025

Choose a reason for hiding this comment

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

Tbh here I would separate the icons into different files and maybe store them inside an Icon folder to make it cleaner. Nice job using an SVG btw!

isSelected={isPlanetSelected}
onAddOrRemovePlanet={onAddOrRemovePlanet}
></PlanetCard>
<PlanetCard

Choose a reason for hiding this comment

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

This is a nice opportunity for using map! If you store the information of the planets into an array of object you can make this more modular and clean!

@desafree
Copy link

Good job!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants