-
Notifications
You must be signed in to change notification settings - Fork 1
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
#146-api-inserted-to-ReviewsBlock #189
Conversation
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.
Парочка помарок
const initials = useMemo(() => { | ||
return review.name.slice(0, 1) | ||
return name.slice(0, 1) | ||
}, [0, 1]) |
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.
почему здесь в useMemo 0, 1?
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.
Сложно ответить на вопрос, так как я не делала этот компонент, Ильфат делал, по- моему, на сколько я поняла, вообще есть Review с нулевым id(pk), в котором нет такого зеленого кружочка , и в нем пишется общий рейтинг магазина , если судить по верстке
Но с бэкенда не приходит ревью с нулевым id(pk), поэтому всегда отображается кружочек
src/widgets/ReviewsBlock/ui/ReviewsBlock/ReviewsBlock.stories.tsx
Outdated
Show resolved
Hide resolved
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.
👍
Добавила api к компоненту ReviewsBlock