From 86e2d7c22d94211a6286dbdfc9b066c391d6a7d4 Mon Sep 17 00:00:00 2001 From: hyuna Date: Wed, 10 Jul 2024 14:45:05 +0900 Subject: [PATCH] =?UTF-8?q?chore=20:=20=EC=99=B8=EC=B6=9C=EC=9E=90=20?= =?UTF-8?q?=EC=82=AC=EC=9C=A0=EB=B3=B4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/common/list/out/page.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/app/components/common/list/out/page.tsx b/src/app/components/common/list/out/page.tsx index 0742ebe..94730a3 100644 --- a/src/app/components/common/list/out/page.tsx +++ b/src/app/components/common/list/out/page.tsx @@ -10,17 +10,21 @@ interface OutProps { } const Out: React.FC = ({ student, returnTime, id, reason }) => { + const [showReason, setShowReason] = useState(false); + return ( - <> -
-
-
{student}
-
- {returnTime} 복귀예정 -
+
setShowReason(!showReason)} + > +
+
{student}
+
+ {returnTime} 복귀예정
- + {showReason ||

{reason}

} +
); };