-
Notifications
You must be signed in to change notification settings - Fork 0
90: fix classroom card badge layout and add tooltips #96
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?
Conversation
|
unknownproperty
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.
Всё хорошо, только стоит также новый пакет прописать для tailwind-конфига в index.css в xi.web
| type SubjectBadgePropsT = { | ||
| subject_id: number; | ||
| className?: string; | ||
| textStyles?: string; |
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.
Чуть более лаконично: textClassName
| {classroom.subject_id ? ( | ||
| <SubjectBadge subject_id={classroom.subject_id} /> | ||
| <SubjectBadge | ||
| subject_id={classroom.subject_id} |
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.
Я бы всё же в качестве стиля для написания пропса использовал camelCase
Это в целом не ошибка, но идеально использовать snake_case только для непосредственно полей из api, а тут мы уже работаем с пропсами самого компонента
No description provided.