From 13cc85fe98ad5260e7ffa92c2b77c398a7b4d883 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Tue, 28 Nov 2023 14:38:04 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20build=20=EC=97=90=EB=9F=AC=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/modal/Modal.tsx | 2 +- .../ScheduleProfileBox.stories.tsx | 4 - src/pages/calendar/CalendarPage.tsx | 175 ------------------ src/routes/index.tsx | 2 +- 4 files changed, 2 insertions(+), 181 deletions(-) delete mode 100644 src/pages/calendar/CalendarPage.tsx diff --git a/src/components/common/modal/Modal.tsx b/src/components/common/modal/Modal.tsx index 6cd1dc5d..5cbc5a4c 100644 --- a/src/components/common/modal/Modal.tsx +++ b/src/components/common/modal/Modal.tsx @@ -2,7 +2,7 @@ import { ReactNode } from 'react' interface ModalProperties { children: ReactNode - onClose: () => void + onClose?: () => void } const Modal = ({ children, onClose }: ModalProperties) => { diff --git a/src/components/common/scheduleProfileBox/ScheduleProfileBox.stories.tsx b/src/components/common/scheduleProfileBox/ScheduleProfileBox.stories.tsx index 122dc7e6..de35266e 100644 --- a/src/components/common/scheduleProfileBox/ScheduleProfileBox.stories.tsx +++ b/src/components/common/scheduleProfileBox/ScheduleProfileBox.stories.tsx @@ -19,10 +19,6 @@ const meta: Meta = { description: '삭제 함수를 입력해주세요', control: { type: 'function' }, required: true - }, - profileNode: { - description: '프로필을 보여줄꺼면 외부에서 리엑트 노드를 입력해주세요', - required: false } } } diff --git a/src/pages/calendar/CalendarPage.tsx b/src/pages/calendar/CalendarPage.tsx deleted file mode 100644 index 4ca3fcd6..00000000 --- a/src/pages/calendar/CalendarPage.tsx +++ /dev/null @@ -1,175 +0,0 @@ -import { useState } from 'react' -import { Accordion } from '@/components/common/accordion/Accordion' -import Button from '@/components/common/button/Button' -import Icon from '@/components/common/icon/Icon' -import Label from '@/components/common/label/Label' -import ListRow from '@/components/common/listRow/ListRow' -import Modal from '@/components/common/modal/Modal' -import Profile from '@/components/common/profile/Profile' -import Spacing from '@/components/common/spacing/Spacing' -import { DATA } from '@/pages/calendar/data' - -const CalendarPage = () => { - // const { calendarId } = useParams() - const [isModalOpen, setIsModalOpen] = useState(false) - const [isDeleteModalOpen, setisDeleteModalOpen] = useState(false) - - return ( -
- -
-

- {DATA.academyInfo.academyName} -

- -

{DATA.date}

-
- - {`${DATA.lessonInfo.lessonTimes[0].startTime} - ${DATA.lessonInfo.lessonTimes[0].endTime}`} -
-

{'반복: 매주 목요일, 토요일'}

-
- -

{DATA.academyInfo.address}

-
-
-
-
- - - {'금액'} -
- } - rightElement={ - - {DATA.lessonInfo.total_fee} - {'원'} - - } - className={'cursor-pointer'} - /> - - {'정원'} - - } - rightElement={{DATA.lessonInfo.capacity}} - className={'cursor-pointer'} - /> - - } - rightElement={} - initialState={true} - contentHeight={100} - /> -
-

{'일정 수행중인 아이'}

-
- {DATA.childrenInfos.map(({ childId, childName }) => ( -
  • - -
  • - ))} -
    -
    -
    -

    {'메모'}

    -
    - {DATA.childrenInfos.map(({ childId, memo }) => ( -
  • - - {memo} -
  • - ))} -
    -
    -
    -
    - {isModalOpen && ( - -
    -

    {'어떤 아이의 정보를 확인할까요?'}

    -
    - {DATA.childrenInfos.map(({ childId }) => ( -
  • - -
  • - ))} -
    -
    -
    - )} - {isDeleteModalOpen && ( - -
    -

    {'일정을 삭제할까요?'}

    -
    -
    -
    -
    - )} - - ) -} - -export default CalendarPage diff --git a/src/routes/index.tsx b/src/routes/index.tsx index e2730bdd..fa41a5bd 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -8,8 +8,8 @@ import EditChildren from '@/pages/EditChildren/EditChildren' import EditingChildren from '@/pages/EditChildren/EditingChildren' import ErrorPage from '@/pages/ErrorPage' import AcademyDashboard from '@/pages/academy/AcademyDashboard' -import AddAcademy from '@/pages/academy/AddSchedule' import AcademyDetail from '@/pages/academy/academyDetail' +import AddAcademy from '@/pages/academy/addSchedule' import DetailSchedulePage from '@/pages/academy/detailSchedule/DetailSchedulePage' import EditAcademy from '@/pages/academy/editAcademy' import FilterPage from '@/pages/filter/FilterPage.tsx'