sam2if / Space_Travelers

MIT License
1 stars 0 forks source link

Dev #34

Closed sam2if closed 1 year ago

sam2if commented 1 year ago

Project requirements Config & basic setup Create React App. Install React Redux, Redux Logger and React Router. Download the free image for the app logo. Create routes and view components: rockets, missions, my profile. Add dragons [only if your team has 3 members]). Use for the page navigation links and style active class to indicate which section/page user is currently on (underline active navigation link).

Redux: Fetch data and update Redux store Upon the first render fetch data from the SpaceX API endpoints: Rockets: https://api.spacexdata.com/v4/rockets Missions: https://api.spacexdata.com/v3/missions Dragons: https://api.spacexdata.com/v4/dragons [only if your team has 3 members] Once the data are fetched, dispatch an action to store the selected data in Redux store: Rockets: id rocket_name description flickr_images Missions: mission_id mission_name description Dragons [only if your team has 3 members]: id name type NOTE: Make sure you only dispatch those actions once and do not add data to store on every re-render (i.e. when changing views / using navigation). NOTE: Rockets is the default view, so you must fetch Rockets data when the application starts. However, the mission data should only be fetched (once) when a user navigates to the Missions section.

topeogunleye commented 1 year ago

@sam2if, @leloufadel, please kindly restore your linter file back to the original state as editing of the linters file will get your pull request invalidated. The reason for your error is that the path referenced in your Rockets.js file is not correct.

  1. There is no Redux folder in your project.
  2. There is no /LoadingR file in your components folder.
sam2if commented 1 year ago

@sam2if, @leloufadel, please kindly restore your linter file back to the original state as editing of the linters file will get your pull request invalidated. The reason for your error is that the path referenced in your Rockets.js file is not correct.

  1. There is no Redux folder in your project.
  2. There is no /LoadingR file in your components folder.

Hello @topeogunleye I have restored the linter