Skip to content
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

Liz García - React Week 2 - Assignments #27

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

liz-garcia
Copy link

@liz-garcia liz-garcia commented Dec 19, 2023

Hello mentor @singhshemona,

Deployed project for React week 2 is here: Ecommerce app

Thank you for your advice and guidance.
By the way, happy holidays & Happy new year! 😊🎉✨

@liz-garcia liz-garcia changed the title Liz García - React Week 1 - Assignments Liz García - React Week 2 - Assignments Jan 3, 2024
Comment on lines +23 to +25
if (!productDetails) {
return <p>Loading...</p>;
}

Choose a reason for hiding this comment

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

I don't actually see a "Loading" text come up when I slow down the internet connection. It might be that productDetails needs to be cleared before it can be set again?

Copy link
Author

Choose a reason for hiding this comment

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

Hi mentor! I inspected this in my code and in the deployed link, and I do see the 'Loading...' text showing up on screen, it appears for a fraction of a second in the top-left corner, in this link: https://ecommerce-app-week2.netlify.app/

Comment on lines 145 to 156
.product-view h1 {
font-size: 29px;
}

.product-info p {
margin: 8px;
font-size: 19px;
}

.product-details .image-container {
height: 400px;
}

Choose a reason for hiding this comment

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

I think something is off with the indentation here

Comment on lines 46 to 55
const Home = ({ selectedCategory, setSelectedCategory }) => (
<>
<CategoryList
selectedCategory={selectedCategory}
setSelectedCategory={setSelectedCategory}
/>
<ProductList selectedCategory={selectedCategory} />
</>
);

Choose a reason for hiding this comment

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

Maybe this should be in a separate file in the components folder? Bit easier to read that way

@liz-garcia
Copy link
Author

Hello mentor @singhshemona 😊

I have implemented the requested changes. I also explored the issue with the "Loading..." text message, but in my link it is working fine, it appears just for a second, at the top left-corner of the screen here: https://ecommerce-app-week2.netlify.app/

If there's anything else I should do, please let me know.
Thank you! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants