-
Notifications
You must be signed in to change notification settings - Fork 150
Frontend: программы обучения в админ панель #909 #986
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
| import { StudyPrograms } from "@widgets/study-programs" | ||
|
|
||
| // Программы для демонстрации | ||
| const mockPrograms = [ |
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.
В проект уже добавлен MSW, можно перенести моки туда, вот тут можно посмотреть пример https://github.com/aisaenok/hexlet-cv/blob/issues-897/frontend/src/mocks/account/index.ts
| } | ||
|
|
||
| return ( | ||
| <Container size='xl' py='md' bg='white'> |
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.
Опять же макет примерный, не нужно указывать white black и т д, делаем все на темной теме она по умолчанию уже прописана в тем провайдере. Т е убери везде bg= c= и т п
| const { t } = useTranslation() | ||
|
|
||
| // стили прописаны временно для разработки | ||
| const inputStyles = { |
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.
Тоже можно убрать
| </Title> | ||
| <Group gap='xs' mb='md'> | ||
| { /* Пока не знаю, что должна делать эта кнопка */ } | ||
| <Button type='submit' variant='default'>{t('adminPage.studyPrograms.button')}</Button> |
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.
А кнопка почему не реализована? На это другая задача есть?
| {programs?.map((program) => ( | ||
| <Table.Tr key={program.id}> | ||
| <Table.Td> | ||
| <TextInput |
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.
Можно ли редактировать? Если да, то опять же в этой же задаче должно быть сделано?
Что сделано:
Ссылка на задачу: #909