diff --git a/src/components/profile/Ticket/Information.tsx b/src/components/profile/Ticket/Information.tsx
index 3a4bed5..fcfb974 100644
--- a/src/components/profile/Ticket/Information.tsx
+++ b/src/components/profile/Ticket/Information.tsx
@@ -1,20 +1,16 @@
'use client';
-import { useLiff } from '@/contexts/liff';
import { useAuth } from '@/contexts/auth';
export default function Inf() {
- const { client } = useLiff();
- const context = client?.getContext();
- const userId = context?.userId || '';
const { user } = useAuth();
- const username = user?.name;
+
return (
- #UID{userId}
+ #{user?.uid}
- {username}
+ {user?.name}
diff --git a/src/components/registered-prepare/Header.tsx b/src/components/registered-prepare/Header.tsx
index dae707e..8f5a626 100644
--- a/src/components/registered-prepare/Header.tsx
+++ b/src/components/registered-prepare/Header.tsx
@@ -18,10 +18,10 @@ export default function header() {
- CU-TU Unity Football 75th
+ The 75th TU-CU Traditional Football Match
- ฟุตบอลประเพณีธรรมศาสตร์-จุฬาฯ ครั้งที่ 75
+ งานฟุตบอลประเพณีธรรมศาสตร์-จุฬาฯ ครั้งที่ 75
@@ -15,10 +17,10 @@ export default function TopPart() {
/>
- 75th CU-TU Unity Football
+ The 75th TU-CU Traditional Football Match
Welcome!, Staff
-
{username}
+
{user?.name}
);
}
diff --git a/src/const/educations.ts b/src/const/educations.ts
index 0213e02..f64caa4 100644
--- a/src/const/educations.ts
+++ b/src/const/educations.ts
@@ -1,7 +1,12 @@
export const educations = ['studying', 'graduated'] as const;
export type Education = (typeof educations)[number];
-export const educationsMap: { [key: string]: Education } = {
+export const educationsMap = {
+ studying: 'กำลังศึกษา',
+ graduated: 'จบการศึกษา',
+};
+
+export const educationsMapReverse: { [key: string]: Education } = {
กำลังศึกษา: 'studying',
จบการศึกษา: 'graduated',
};
diff --git a/src/schema/user.ts b/src/schema/user.ts
index 04d6cb4..3047f4e 100644
--- a/src/schema/user.ts
+++ b/src/schema/user.ts
@@ -8,6 +8,7 @@ import { z } from 'zod';
export const UserSchema = z.object({
id: z.string(),
+ uid: z.string(),
name: z.string(),
education: z.enum(educations),
email: z.string(),