Uzair-Manzoor / SpaceTravelersHub

In this task, we worked with the real live data from the SpaceX API. Our task was to build a web application for a company that provides commercial and scientific space travel services. The application allows users to book rockets,dragons and join selected space missions.
https://space-travelers-8tvba23t2-uzair-manzoor.vercel.app/
MIT License
2 stars 1 forks source link

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

Open Uzair-Manzoor opened 1 year ago

Uzair-Manzoor 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
)}
Uzair-Manzoor commented 1 year ago

Task has been completed: 👉 Pull Request