diff --git a/002_source/cms/src/app/dashboard/lesson_types/[typeId]/page.tsx b/002_source/cms/src/app/dashboard/lesson_types/[typeId]/page.tsx index 20ea797..8f9d042 100644 --- a/002_source/cms/src/app/dashboard/lesson_types/[typeId]/page.tsx +++ b/002_source/cms/src/app/dashboard/lesson_types/[typeId]/page.tsx @@ -46,6 +46,24 @@ export default function Page(): React.JSX.Element { const [showLessonType, setShowLessonType] = React.useState(LessonTypeDefaultValue); const router = useRouter(); + function handleEditClick() { + router.push(paths.dashboard.lesson_types.edit(showLessonType.id)); + } + + React.useEffect(() => { + // getLessonTypeById(typeId) + // .then((lessonType: LessonType) => { + // setIsLoading(false); + // setShowLessonType(lessonType); + // }) + // .catch((err) => { + // // console.error(err); + // console.error(t('lessonType.load_error')); + // }); + // console.log('hello'); + }, []); + if (isLoading) return
{t('common.loading')}
; + return (