Skip to content

Conversation

@winniekwokwy
Copy link
Collaborator

We completed the following:-

  1. implemented 3 icons for choosing different rovers
  2. showed manifest information based on user's choice
  3. showed rover images based on user's choice

@netlify
Copy link

netlify bot commented May 22, 2025

Deploy Preview for gregarious-otter-866740 ready!

Name Link
🔨 Latest commit fad488b
🔍 Latest deploy log https://app.netlify.com/projects/gregarious-otter-866740/deploys/6830500e3e3b350008f993b6
😎 Deploy Preview https://deploy-preview-24--gregarious-otter-866740.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

src/App.tsx Outdated
</Routes>
</Router>
);
return <RoverDetails />;
Copy link
Contributor

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;
Copy link
Contributor

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

Copy link
Collaborator Author

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 {
Copy link
Contributor

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's fixed.

@hduns hduns merged commit 5bcffd5 into main May 23, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants