From 2e15ab4cadb265938ad5ef9c3cac22a2e972c317 Mon Sep 17 00:00:00 2001 From: TeeGooodGood <122004889+TeeGoood@users.noreply.github.com> Date: Fri, 31 Jan 2025 15:38:42 +0700 Subject: [PATCH 1/2] fix: backgroun --- src/components/profile/Background.css | 2 +- src/components/profile/Background.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 From f51e755674cb8dce31ce7d8ac1bbea038d6332af Mon Sep 17 00:00:00 2001 From: TeeGooodGood <122004889+TeeGoood@users.noreply.github.com> Date: Fri, 31 Jan 2025 15:44:40 +0700 Subject: [PATCH 2/2] feat: add invitation code field --- src/app/(user)/register/_components/subpages/two.tsx | 6 ++++++ src/schema/register.ts | 1 + 2 files changed, 7 insertions(+) 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/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: 'กรุณากรอกอายุ',