From 7ece1c814b45fe2d4d0dbbb0a27feaa737887a9c Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Sun, 11 May 2025 16:07:06 +0800 Subject: [PATCH] update order of import, --- .../src/components/dashboard/student/student-edit-form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/002_source/cms/src/components/dashboard/student/student-edit-form.tsx b/002_source/cms/src/components/dashboard/student/student-edit-form.tsx index 70592e5..df2bb73 100644 --- a/002_source/cms/src/components/dashboard/student/student-edit-form.tsx +++ b/002_source/cms/src/components/dashboard/student/student-edit-form.tsx @@ -32,6 +32,7 @@ import { useTranslation } from 'react-i18next'; import { z as zod } from 'zod'; import { paths } from '@/paths'; +import isDevelopment from '@/lib/check-is-development'; import { logger } from '@/lib/default-logger'; import { base64ToFile, fileToBase64 } from '@/lib/file-to-base64'; import { pb } from '@/lib/pb'; @@ -40,9 +41,8 @@ import FormLoading from '@/components/loading'; // import ErrorDisplay from '../../error'; import ErrorDisplay from '../error'; -import isDevelopment from '@/lib/check-is-development'; -// TODO: review this +// TODO: review schema const schema = zod.object({ name: zod.string().min(1, 'Name is required').max(255), email: zod.string().email('Must be a valid email').min(1, 'Email is required').max(255),