From dffad8c25e65997b0c35662b2022b0389e1780ae Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Wed, 16 Apr 2025 01:41:14 +0800 Subject: [PATCH] update build ok, --- .../dashboard/lesson_types/[typeId]/page.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 (