-
Notifications
You must be signed in to change notification settings - Fork 7
Vlada_Bessikalo-w1-React #5
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
base: main
Are you sure you want to change the base?
Vlada_Bessikalo-w1-React #5
Conversation
Hi Vlada, Your code works well and shows a good understanding of React. Great work! Assignment Requirements ✅
Comments Rules
Suggestions 💡
Nice-to-have ✨
Praise 🌟
Nice one! |
@@ -0,0 +1,26 @@ | |||
/* eslint-disable react/prop-types */ |
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.
Suggestion:
Since you don't want this rule in the whole project, you can turn it off in the eslint config
}; | ||
|
||
const normalizeCategory = (category) => { | ||
return category.replace('FAKE:', '').trim(); |
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.
return category.replace('FAKE:', '').trim(); | |
return category.replace('FAKE: ', ''); |
Suggestion:
you don't need trim
setSelectedCategory(category); | ||
}; | ||
|
||
const normalizeCategory = (category) => { |
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.
Suggestion:
This function can be handled in the Categories
component.
Due to the Single Responsibility principle, the App
pages shouldn't need to know the 'FAKE:' details.
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.
Suggestion:
Removing unused files that came with the project template. such as index.css, and assets folder
https://ecommerce-vlada-bess.netlify.app/