usmansbk / react-group-project

Home Page:https://competent-pasteur-0ea516.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[1pt] Switch badges for Missions - Conditional components

usmansbk opened this issue · comments

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