diff --git a/src/app/(user)/register/_components/subpages/two.tsx b/src/app/(user)/register/_components/subpages/two.tsx index 9f04712..1f9afbb 100644 --- a/src/app/(user)/register/_components/subpages/two.tsx +++ b/src/app/(user)/register/_components/subpages/two.tsx @@ -272,6 +272,12 @@ export default function Two({ setStep, form }: TwoProps) { {errors.drugAllergy?.message} +
+ + + {errors.invitationCode?.message} +
+ {/* idCardImg */}
diff --git a/src/components/profile/Background.css b/src/components/profile/Background.css index 9080403..ba97d60 100644 --- a/src/components/profile/Background.css +++ b/src/components/profile/Background.css @@ -1,3 +1,3 @@ .BG{ - background: linear-gradient(172.63deg, #E86CA3 -5.83%, #A57FBD 39.58%, #6B8FD3 57.85%, #5D3A60 82.53%); + background: linear-gradient(172.63deg, #E86CA3 -5.83%, #A57FBD 39.58%, #6B8FD3 57.85%, #A57FBD 82.53%); } \ No newline at end of file diff --git a/src/components/profile/Background.tsx b/src/components/profile/Background.tsx index 7371a1f..a9f87cd 100644 --- a/src/components/profile/Background.tsx +++ b/src/components/profile/Background.tsx @@ -7,7 +7,7 @@ export default function Background() { <> Background diff --git a/src/schema/register.ts b/src/schema/register.ts index 3587e31..d2b8686 100644 --- a/src/schema/register.ts +++ b/src/schema/register.ts @@ -9,6 +9,7 @@ export const RegisterSchema = z.object({ name: z.string().min(1, 'กรุณากรอกชื่อ-นามสกุล'), email: z.string().email('กรุณากรอกอีเมล'), phone: z.string().regex(/^\d.{9}$/, 'กรุณากรอกเลขเบอร์ 10 หลัก'), + invitationCode: z.string(), age: z .string({ message: 'กรุณากรอกอายุ',