diff --git a/src/app/mypage/children/page.tsx b/src/app/mypage/children/page.tsx index dc8e732..5f74d59 100644 --- a/src/app/mypage/children/page.tsx +++ b/src/app/mypage/children/page.tsx @@ -54,6 +54,7 @@ const MyPage = () => { (response) => { const data = response.data; setChild(data); + console.log("ckdkf", child.allergies); } ); } @@ -183,9 +184,14 @@ const MyPage = () => { hidden={true} /> - {child.allergies?.map((allergies, index) => ( - - ))} + {child.allergies + ?.slice(0, 3) + .map((allergies, index) => ( + + ))} + {child.allergies && child.allergies.length > 2 && ( + ... + )} {allergyPopup && ( @@ -305,3 +311,16 @@ const KeywordItems = styled.div` display: flex; gap: 10px; `; + +const Omission = styled.div` + width: auto; + display: flex; + padding: 6px 8px; + justify-content: center; + align-items: center; + border-radius: 6px; + background: rgba(255, 135, 0, 0.15); + color: ${theme.colors.primary500}; + ${(props) => props.theme.fonts.caption1_b}; + cursor: default; +`; 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)} + /> + )}