-
Notifications
You must be signed in to change notification settings - Fork 3
Rover details #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rover details #24
Conversation
✅ Deploy Preview for gregarious-otter-866740 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
src/App.tsx
Outdated
| </Routes> | ||
| </Router> | ||
| ); | ||
| return <RoverDetails />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you handle the merge here you can do this,
<Route path="/" element={ <> <PhotoOfTheDay /> <RoverDetails /> </> } />
| ) | ||
| .then((response) => response.json()) | ||
| .then((response) => { | ||
| const data = response.photo_manifest; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't delay getting this merged for this, but have a think about what you would happen if the API call failed and data was undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for pointing it out.
| import "./RoverDetails.scss"; | ||
| import RoverImages from "../RoverImages/RoverImages"; | ||
|
|
||
| export enum rovers { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The enum should be capitalised
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's fixed.
We completed the following:-