jicamargo / space-travelers

A Space-X-React-Group app built with React, Redux, CSS, and HTML. Users can view information about the latest Space-X launches, rockets, and missions. The app also features a search function, allowing users to search for information about specific launches, rockets, or missions.👌
https://space-travelers-five.vercel.app
MIT License
2 stars 0 forks source link

[1pt] Switch badges for Missions - Conditional components #6

Open jicamargo opened 1 year ago

jicamargo commented 1 year ago

Missions that the user has joined already should show a badge "Active Member" instead of the default "NOT A MEMBER" and a button "Leave Mission" instead of the "Join Mission" button (as per design).

Use the React conditional rendering syntax:

{rocket.reserved && ( 
    // render Cancel Rocket button
)}