-
Notifications
You must be signed in to change notification settings - Fork 7
BOX-60 BOX-26 User page and card view page #27
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
Conversation
BOX-60 Страница пользователя
|
BOX-26 Просмотр карточки
Card (v.0) - Cardbox Main (Figma) У каждой карточки должна быть прямая ссылка, которая не меняется при редактировании |
azinit
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.
В целом - оч добротно, но некоторые моменты бы поправил всеж
Возможно со второй итерации еще что вылезет, но в целом есть что улучшить еще)
# Conflicts: # yarn.lock
azinit
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.
Есть что улучшить офк, но я бы лично поправил это позж, а пока залил бы как есть))
А то сколько времени уже тянем
|
|
||
| return ( | ||
| <PaperContainerStyled data-type={type}> | ||
| {/*<Container>*/} |
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.
Твоя любовь к комментарием все не отпускает тебя, да?)
| import { avatarUri } from '../../../shared/constants'; | ||
| import { paths } from '../../../pages/paths'; |
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.
Некритично, но я бы уже начинал абсолютные пути юзать
| import { avatarUri } from '../../../shared/constants'; | |
| import { paths } from '../../../pages/paths'; | |
| import { avatarUri } from '@box/shared/constants'; | |
| import { paths } from '@box/pages/paths'; |
| export const UserPage = () => { | ||
| useStart(model.pageLoaded); | ||
| const cards = useStore(cardModel.$cards); | ||
| const reversedCards = [...cards].reverse(); |
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.
У тебя эта операция каждый рендер будет происходить
Некритично, но я бы в самой модели смаппил
$cards.map(...) (насколько помню так в эффекторе делается)
| @@ -0,0 +1,2 @@ | |||
| export const avatarUri = | |||
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 onClick = React.useCallback(() => { | ||
| setSelectedTab(index); | ||
| }, [setSelectedTab, index]); |
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.
|
Будет пофикшено по: |

feat/user-profile