Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/app/(user)/register/_components/subpages/two.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ export default function Two({ setStep, form }: TwoProps) {
<ErrorMsgFloat>{errors.drugAllergy?.message}</ErrorMsgFloat>
</div>

<div className="relative space-y-1">
<Label>รหัสผู้เเนะนำให้เข้าร่วมกิจกรรม (ไม่จำเป็น)</Label>
<TextInput {...register('invitationCode')} placeholder="AB12345" />
<ErrorMsgFloat>{errors.invitationCode?.message}</ErrorMsgFloat>
</div>

{/* idCardImg */}
<div className="relative space-y-1">
<Label isRequired>อัปโหลดรูปด้านหน้าบัตรประชาชน</Label>
Expand Down
2 changes: 1 addition & 1 deletion src/components/profile/Background.css
Original file line number Diff line number Diff line change
@@ -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%);
}
2 changes: 1 addition & 1 deletion src/components/profile/Background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function Background() {
<>
<Image
src={getImageURL('/profile/Background.png')}
className="absolute inset-0 -z-10 opacity-70"
className="absolute inset-0 -z-10 opacity-50"
fill
alt="Background"
/>
Expand Down
1 change: 1 addition & 0 deletions src/schema/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: 'กรุณากรอกอายุ',
Expand Down
Loading