From 3945c337e33b0b9a11ea244a0816cbd5f943884d Mon Sep 17 00:00:00 2001 From: yyypearl Date: Fri, 7 Jun 2024 02:46:52 +0900 Subject: [PATCH 1/4] =?UTF-8?q?feat(#117):=20=EC=B2=B4=ED=97=98=ED=95=99?= =?UTF-8?q?=EC=8A=B5=20=EC=8B=A0=EC=B2=AD=EC=84=9C=20=EC=9E=91=EC=84=B1=20?= =?UTF-8?q?=ED=8C=9D=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../absentReason/form/page.tsx | 6 +- .../parentReference/workStudy/form/page.tsx | 26 +++- src/components/common/Calendar.tsx | 13 +- .../school/parentReference/FormPopup.tsx | 120 +++++++++++++----- 4 files changed, 131 insertions(+), 34 deletions(-) diff --git a/src/app/school/parentReference/absentReason/form/page.tsx b/src/app/school/parentReference/absentReason/form/page.tsx index ad48ff0..852c018 100644 --- a/src/app/school/parentReference/absentReason/form/page.tsx +++ b/src/app/school/parentReference/absentReason/form/page.tsx @@ -33,7 +33,11 @@ const AbsentReasonForm = () => { /> {writeForm && ( - + )} {showToast && ( { + const [writeForm, setWriteForm] = useState(false); + const [showToast, setShowToast] = useState(false); + const handleWriteFormClick = () => { + setWriteForm(!writeForm); + }; + return (
@@ -15,7 +24,7 @@ const WorkStudyForm = () => { 작성을 시작해보세요
- + workstudy_form { objectFit="contain" /> + {writeForm && ( + + )} + {showToast && ( + setShowToast(false)} + /> + )}