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

Conversation

SeyedehParisaMousaviamiri

No description provided.

name={planet}
onRemove={() => removeFromWishlist(planet)}
thumbnail={`/destination/image-${planet.toLowerCase()}.png`}
/>

Choose a reason for hiding this comment

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

Nice job using map here!

onClick={() => onAddOrRemovePlanet(planet.name)}
>
{isSelected ? "REMOVE" : "ADD PLANET"}
</button>

Choose a reason for hiding this comment

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

To make it clearer I'd store this logic into a separate component :)

@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