Skip to content

Conversation

@reinaka
Copy link
Contributor

@reinaka reinaka commented Jan 18, 2026

No description provided.

@github-actions
Copy link

github-actions bot commented Jan 18, 2026

Name Status Preview
xi.web ✔️Success✔️ Visit Preview

@reinaka
Copy link
Contributor Author

reinaka commented Jan 18, 2026

@reinaka reinaka marked this pull request as draft January 19, 2026 15:20
@reinaka reinaka marked this pull request as ready for review January 19, 2026 16:33
Copy link
Contributor

@unknownproperty unknownproperty left a 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;
Copy link
Contributor

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы всё же в качестве стиля для написания пропса использовал camelCase

Это в целом не ошибка, но идеально использовать snake_case только для непосредственно полей из api, а тут мы уже работаем с пропсами самого компонента

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants