From 8baaa28e17a2c13291d75d2cc12a7e34e7d5ec99 Mon Sep 17 00:00:00 2001 From: hyuna Date: Fri, 23 Aug 2024 14:16:43 +0900 Subject: [PATCH] =?UTF-8?q?FIX=20::=20=EC=A1=B0=EA=B8=B0=EA=B7=80=EA=B0=80?= =?UTF-8?q?=20=EC=88=98=EB=9D=BD=20=EB=B2=84=EA=B7=B8=20=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 | 1 + src/app/classChange/page.tsx | 2 +- src/app/outAccept/page.tsx | 6 ++---- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/api/type.ts b/src/api/type.ts index 853affb..d29d993 100644 --- a/src/api/type.ts +++ b/src/api/type.ts @@ -54,6 +54,7 @@ export interface ChangeStatus { export interface FloorClass { user_id: string; + 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 b5b85e8..c851c09 100644 --- a/src/app/classChange/page.tsx +++ b/src/app/classChange/page.tsx @@ -143,7 +143,7 @@ const ClassChange = () => { handleAcceptListClick(item.user_id, item.username)} + onClick={() => handleAcceptListClick(item.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 56fb4ba..b1e7fbf 100644 --- a/src/app/outAccept/page.tsx +++ b/src/app/outAccept/page.tsx @@ -227,14 +227,12 @@ const OutAccept = () => { )) : applicationData?.map((item, index) => ( - handleAcceptListClick(item.user_id, item.username) - } + onClick={() => handleAcceptListClick(item.id, item.username)} reason={item.reason} /> ))}