update build ok,
This commit is contained in:
@@ -46,6 +46,24 @@ export default function Page(): React.JSX.Element {
|
||||
const [showLessonType, setShowLessonType] = React.useState<LessonType>(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 <div>{t('common.loading')}</div>;
|
||||
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
|
Reference in New Issue
Block a user