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

React1 week2/parisa#47

Open
SeyedehParisaMousaviamiri wants to merge 6 commits intoHackYourFuture-CPH:mainfrom
SeyedehParisaMousaviamiri:react1-week2/Parisa
Open

React1 week2/parisa#47
SeyedehParisaMousaviamiri wants to merge 6 commits intoHackYourFuture-CPH:mainfrom
SeyedehParisaMousaviamiri:react1-week2/Parisa

Conversation

@SeyedehParisaMousaviamiri
Copy link
Copy Markdown

No description provided.

Comment thread app/destination/page.js
name={planet}
onRemove={() => removeFromWishlist(planet)}
thumbnail={`/destination/image-${planet.toLowerCase()}.png`}
/>
Copy link
Copy Markdown

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!

Comment thread app/destination/page.js
onClick={() => onAddOrRemovePlanet(planet.name)}
>
{isSelected ? "REMOVE" : "ADD PLANET"}
</button>
Copy link
Copy Markdown

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
Copy Markdown

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