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.
[ ] Use useSelector() Redux Hook to select the state slices and render lists of missions in corresponding routes.
[ ] style the whole application
[ ] Render a table with the missions' data (as per design).
[ ] 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.
[ ] When a user clicks the "Join Mission" button, an action needs to be dispatched to update the store. You need to get the ID of the selected mission and update the state. Remember you mustn't mutate the state. Instead, you need to return a new state object with all missions, but the selected mission will have an extra key reserved with its value set to true. You could use a JS filter() or map() to set the value of the new state.
[ ] place all your logic in the reducer. In the React view file, you should only dispatch the action with the correct rocket ID as an argument.
[ ] Follow the same logic in Leave Mission as with the "Join mission" - but you need to set the reserved key to false.
[ ] Dispatch these actions upon clicking on the corresponding buttons.
[ ] Added dispatch functionality and dispatched actions
[ ] Added constants, action functions, and reducer functions in redux
[ ] Added provider from redux in App.js to be able to use the redux store
Thanks for taking out the time to review this project 🧨
It really is appreciated :) ❤️
Note: I personally love optional suggestions so please do leave some 😄
Implemented the following Changes;
Thanks for taking out the time to review this project 🧨
It really is appreciated :) ❤️