From 1320a50af0fae518bc61343f159fef392a21a270 Mon Sep 17 00:00:00 2001 From: Alexei Date: Sun, 7 Apr 2024 16:15:08 +1000 Subject: [PATCH] =?UTF-8?q?#19=20=D0=9D=D0=B5=D0=B2=D0=B5=D1=80=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D0=BD=D0=B0=D0=B4=D0=BF=D0=B8=D1=81=D0=B8=20?= =?UTF-8?q?=D0=B2=20=D1=84=D0=BE=D1=80=D0=BC=D0=B5=20=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=B0=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BB=D0=B5=D0=BA=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/lesson-list.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/lesson-list.tsx b/src/pages/lesson-list.tsx index d63f51c..2028372 100644 --- a/src/pages/lesson-list.tsx +++ b/src/pages/lesson-list.tsx @@ -65,6 +65,8 @@ interface LessonFormProps { onCancel: () => void onSubmit: (lesson: Lesson) => void error?: string + title: string + nameButton: string } const LessonForm = ({ @@ -73,6 +75,8 @@ const LessonForm = ({ onCancel, onSubmit, error, + title, + nameButton, }: LessonFormProps) => { const { control, @@ -90,7 +94,7 @@ const LessonForm = ({ - Создание лекции + {title} - Создать + {nameButton} @@ -343,6 +347,8 @@ const LessonList = () => { }} error={(crLQuery.error as any)?.error} lesson={editLesson} + title={editLesson ? 'Редактирование лекции' : 'Создание лекции'} + nameButton={editLesson ? 'Редактировать' : 'Создать'} /> ) : ( -- 2.45.2