As a user, I should be able to click the Add to Waitlist button and the selected team will be removed from the Teams component and added to the WaitList component
Acceptance Criteria
WHEN the user clicks the Add to Waitlist button
THEN the selected team will be removed from the Teams component and added to the WaitList component
Dev Notes
Within the SingleTeam view the AddtoWaitlist button will live
The button is set to 'false' within the firebase data, so I need:
state = {
isWaitlist: false,
}
Create a function that toggles from true/false on button click, which will either add the team to the waitlist and remove from the Team component OR add to teamComponent and remove from waitlist
User Story
As a user, I should be able to click the
Add to Waitlist
button and the selected team will be removed from the Teams component and added to the WaitList componentAcceptance Criteria
WHEN the user clicks the
Add to Waitlist
button THEN the selected team will be removed from the Teams component and added to the WaitList componentDev Notes
AddtoWaitlist
button will live