RaoAkif / SpaceTravelersHub

In this project we worked with live data from the SpaceX API and used this data to build a web application for a company that provides commercial and scientific space travel services. The application will allow users to book rockets and join selected space missions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Team3 [1pt] Switch badges for Dragons - Conditional components

RaoAkif opened this issue · comments

Dragons that have already been reserved should show a "Reserved" badge and "Cancel reservation" button instead of the default "Reserve dragon" (as per design).

Use the React conditional rendering syntax:

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