-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: Added Home and Shop pages #1
Conversation
✔️ Deploy Preview for bookztron-dev-branch ready! 🔨 Explore the source changes: fe4fdbd 🔍 Inspect the deploy log: https://app.netlify.com/sites/bookztron-dev-branch/deploys/622dc6c6bace8f0008a2856c 😎 Browse the preview: https://deploy-preview-1--bookztron-dev-branch.netlify.app/ |
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 PR is very big, but i have suggested some changes you can work on them.
Most of the coding conventions are nice so great work and app is also working very nicely
{ | ||
const [ productsAvailableList, dispatchSortedProductsList] = useReducer(productsOrderFunc,productList) | ||
const [ productFilterOptions, dispatchProductFilterOptions ] = useReducer(updateProductFilters,filterOptionsObject) | ||
|
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: I think this violates the rules of hooks read this https://reactjs.org/docs/hooks-rules.html
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 believe no rules were broken, I called useReducer at the top level of a component. Would be great if you can elaborate a little more 😅
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.
Apart from the Changes, the Code looks good and self-explanatory what each function are doing
Added Home and Shop Pages with all working filters
I understand that I made a mistake of adding both pages in 1 PR but I can't revert it because everything is inter-connected and site will start breaking if I unstage some files. Also it will be un-manageable to track all files if I start unstaging them because there are a lot of files.
So I understand if you can skim through code, just to check if everything looks fine.
From next PR I will make sure to create small PRs 😅
Thanks! 😄
Genre Cards
New Arrivals
Footer
Shop Page