From 5c63652267bfd97db10d097011cdec42f2402871 Mon Sep 17 00:00:00 2001 From: hyuna Date: Tue, 20 Aug 2024 22:52:13 +0900 Subject: [PATCH] =?UTF-8?q?chore=20::=20id=20type=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/type.ts | 5 +++-- src/app/classChange/page.tsx | 2 +- src/app/outAccept/page.tsx | 12 ++++++++---- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/api/type.ts b/src/api/type.ts index 56af8a7..853affb 100644 --- a/src/api/type.ts +++ b/src/api/type.ts @@ -1,7 +1,8 @@ export interface applicationOK { - id: string; + user_id: string; username: string; start_time: string; + id: string; end_time: string; grade: number; class_num: number; @@ -52,7 +53,7 @@ export interface ChangeStatus { } export interface FloorClass { - id: string; + user_id: string; class_num: number; classroom_name: string; end_period: number; diff --git a/src/app/classChange/page.tsx b/src/app/classChange/page.tsx index c851c09..b5b85e8 100644 --- a/src/app/classChange/page.tsx +++ b/src/app/classChange/page.tsx @@ -143,7 +143,7 @@ const ClassChange = () => { handleAcceptListClick(item.id, item.username)} + onClick={() => handleAcceptListClick(item.user_id, item.username)} prevClass={item.move} nextClass={`${item.classroom_name}`} student={getStudentString(item)} diff --git a/src/app/outAccept/page.tsx b/src/app/outAccept/page.tsx index 88dc852..ef4536b 100644 --- a/src/app/outAccept/page.tsx +++ b/src/app/outAccept/page.tsx @@ -216,23 +216,27 @@ const OutAccept = () => { {selectedTab ? applicationData?.map((item, index) => ( handleAcceptListClick(item.id, item.username)} + onClick={() => + handleAcceptListClick(item.user_id, item.username) + } reason={item.reason} /> )) : applicationData?.map((item, index) => ( handleAcceptListClick(item.id, item.username)} + onClick={() => + handleAcceptListClick(item.user_id, item.username) + } reason={item.reason} /> ))}