Compare commits
No commits in common. "4d498662f84bbc486b7dbe96f67920de70af1241" and "4504961fa0c044a4f72902a9e416ce902540c84c" have entirely different histories.
4d498662f8
...
4504961fa0
@ -65,8 +65,6 @@ interface LessonFormProps {
|
|||||||
onCancel: () => void
|
onCancel: () => void
|
||||||
onSubmit: (lesson: Lesson) => void
|
onSubmit: (lesson: Lesson) => void
|
||||||
error?: string
|
error?: string
|
||||||
title: string
|
|
||||||
nameButton: string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const LessonForm = ({
|
const LessonForm = ({
|
||||||
@ -75,8 +73,6 @@ const LessonForm = ({
|
|||||||
onCancel,
|
onCancel,
|
||||||
onSubmit,
|
onSubmit,
|
||||||
error,
|
error,
|
||||||
title,
|
|
||||||
nameButton,
|
|
||||||
}: LessonFormProps) => {
|
}: LessonFormProps) => {
|
||||||
const {
|
const {
|
||||||
control,
|
control,
|
||||||
@ -94,7 +90,7 @@ const LessonForm = ({
|
|||||||
<Card align="left">
|
<Card align="left">
|
||||||
<CardHeader display="flex">
|
<CardHeader display="flex">
|
||||||
<Heading as="h2" mt="0">
|
<Heading as="h2" mt="0">
|
||||||
{title}
|
Создание лекции
|
||||||
</Heading>
|
</Heading>
|
||||||
<CloseButton
|
<CloseButton
|
||||||
ml="auto"
|
ml="auto"
|
||||||
@ -157,7 +153,7 @@ const LessonForm = ({
|
|||||||
colorScheme="blue"
|
colorScheme="blue"
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
>
|
>
|
||||||
{nameButton}
|
Создать
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
</VStack>
|
</VStack>
|
||||||
@ -347,8 +343,6 @@ const LessonList = () => {
|
|||||||
}}
|
}}
|
||||||
error={(crLQuery.error as any)?.error}
|
error={(crLQuery.error as any)?.error}
|
||||||
lesson={editLesson}
|
lesson={editLesson}
|
||||||
title={editLesson ? 'Редактирование лекции' : 'Создание лекции'}
|
|
||||||
nameButton={editLesson ? 'Редактировать' : 'Создать'}
|
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Box p="2" m="2">
|
<Box p="2" m="2">
|
||||||
|
Loading…
Reference in New Issue
Block a user