-
Notifications
You must be signed in to change notification settings - Fork 7
DMYTRO_DORONIN-w3-React #26
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?
DMYTRO_DORONIN-w3-React #26
Conversation
robvk
left a comment
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.
No real issues with the code, nice work. I do think you need to be more careful with branches and what is pushed to a PR. This is a skill that is very important as when working in a team PR management becomes something you need to do all the time. So when you get some time (after the project) try to fix this PR so that there is no .idea folder and no prep-exercises in it.
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.
Don't forget to add .idea to the .gitignore. These are personal files so shouldn't be in PRs.
| @@ -0,0 +1,27 @@ | |||
| export const baseUrl = "https://fakestoreapi.com"; | |||
|
|
|||
| export type ApiError = | |||
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.
Cool idea
| export const fetchFavouriteProducts = async ( | ||
| ids: number[], | ||
| ): Promise<ProductsType[]> => { | ||
| return Promise.all( |
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.
Good use of Promise.all
| return ( | ||
| <div className={styles.wrapper}> | ||
| <img className={styles.img} src={image} alt={title} /> | ||
| <h3>{replaceFake(productData?.title)}</h3> |
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.
We didn't need the replaceFake anymore. Could have removed that dead code
No description provided.