Skip to content

Conversation

@Dmytro-Doronin
Copy link

No description provided.

@Dmytro-Doronin
Copy link
Author

Copy link

@robvk robvk left a 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.

Copy link

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 =
Copy link

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(
Copy link

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

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

@robvk robvk added the Approved label Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants