-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(member): Calendar 새로운 프로젝트 구조 적용 (#238)
- Loading branch information
Showing
12 changed files
with
140 additions
and
134 deletions.
There are no files selected for viewing
65 changes: 0 additions & 65 deletions
65
apps/member/src/components/calendar/CalendarSchedule/CalendarSchedule.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from './useSchedule'; | ||
export * from './useScheduleMutation'; | ||
export * from './useScheduleCollect'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
apps/member/src/pages/CalendarPage/hooks/useScheduleInfoModal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { useMemo } from 'react'; | ||
|
||
import { useModal } from '@hooks/common/useModal'; | ||
import { formattedDatePeriod } from '@utils/date'; | ||
|
||
interface Options { | ||
startDateTime: string; | ||
endDateTime: string; | ||
detail: string; | ||
} | ||
|
||
export function useScheduleInfoModal() { | ||
const { open } = useModal(); | ||
|
||
return useMemo( | ||
() => ({ | ||
open: (options: Options) => | ||
open({ | ||
title: '📆 일정', | ||
content: `일시: ${formattedDatePeriod(options.startDateTime, options.endDateTime)}\n내용: ${options.detail}`, | ||
}), | ||
}), | ||
[open], | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Suspense } from 'react'; | ||
|
||
import Content from '@components/common/Content/Content'; | ||
import Header from '@components/common/Header/Header'; | ||
|
||
import CalendarSection from './components/CalendarSection'; | ||
import { StatusSection } from './components/StatusSection'; | ||
import { TableSection } from './components/TableSection'; | ||
|
||
export default function CalendarPage() { | ||
return ( | ||
<Content> | ||
<Header title="일정" /> | ||
|
||
<Suspense> | ||
<StatusSection /> | ||
</Suspense> | ||
|
||
<Suspense> | ||
<CalendarSection /> | ||
</Suspense> | ||
|
||
<Suspense> | ||
<TableSection /> | ||
</Suspense> | ||
</Content> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters