Compare commits

..

No commits in common. "4d498662f84bbc486b7dbe96f67920de70af1241" and "4504961fa0c044a4f72902a9e416ce902540c84c" have entirely different histories.

View File

@ -65,8 +65,6 @@ interface LessonFormProps {
onCancel: () => void
onSubmit: (lesson: Lesson) => void
error?: string
title: string
nameButton: string
}
const LessonForm = ({
@ -75,8 +73,6 @@ const LessonForm = ({
onCancel,
onSubmit,
error,
title,
nameButton,
}: LessonFormProps) => {
const {
control,
@ -94,7 +90,7 @@ const LessonForm = ({
<Card align="left">
<CardHeader display="flex">
<Heading as="h2" mt="0">
{title}
Создание лекции
</Heading>
<CloseButton
ml="auto"
@ -157,7 +153,7 @@ const LessonForm = ({
colorScheme="blue"
isLoading={isLoading}
>
{nameButton}
Создать
</Button>
</Box>
</VStack>
@ -347,8 +343,6 @@ const LessonList = () => {
}}
error={(crLQuery.error as any)?.error}
lesson={editLesson}
title={editLesson ? 'Редактирование лекции' : 'Создание лекции'}
nameButton={editLesson ? 'Редактировать' : 'Создать'}
/>
) : (
<Box p="2" m="2">