issues
search
MAleemH
/
Space-Travelers-Hub
Other
1
stars
1
forks
source link
Join and leave the mission btn
#31
Closed
The-Normal-One1
closed
1 year ago
The-Normal-One1
commented
1 year ago
The following lists were done to create the app :
Implement mission joining - Actions #10
[x] When a user clicked the "Join Mission" button, action needs to be dispatched to update the store.
[x] I got the ID of the selected mission and updated the state.
[x] Returned a new state object with all missions, but the selected mission has an extra key reserved with its value set to true.
[x] I used a map() to set the value of the new state
Implement mission leaving - Actions #9
[x] Followed the same logic as with the "Join mission" - but I set the reserved key to false.
[x] Dispatched these actions upon clicking on the corresponding buttons.
Switch badges for Missions - Conditional components #6
[x] I added 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).
The following lists were done to create the app :
Implement mission joining - Actions #10
Implement mission leaving - Actions #9
Switch badges for Missions - Conditional components #6