EmekaEmmanuel / space_travel

A project for a company that provides commercial and scientific space travel services. It allows user to book rockets and join selected space missions.
MIT License
0 stars 0 forks source link

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

Open EmekaEmmanuel opened 1 year ago

EmekaEmmanuel 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
)}