diff --git a/apis/calendar.ts b/apis/calendar.ts index 142ccb8..aa748c7 100644 --- a/apis/calendar.ts +++ b/apis/calendar.ts @@ -27,12 +27,13 @@ export type CalendarDate = { day: number; }; -interface GetProgramDetailBody { +export interface GetProgramDetailBody { programIdx: number; name: string; openDate: CalendarDate; dueDate: CalendarDate; location: string; + locatedPlace: string; host: string; schedule: string; description: string; diff --git a/apis/hooks/calendar.ts b/apis/hooks/calendar.ts index 4d35644..b615fb2 100644 --- a/apis/hooks/calendar.ts +++ b/apis/hooks/calendar.ts @@ -9,8 +9,6 @@ const useGetMonthCalendar = () => { return { data }; }; -export { useGetMonthCalendar }; - const useGetProgramDetail = (programIdx: number) => { const { data } = useQuery({ queryKey: ["getProgramDetail"], @@ -19,4 +17,4 @@ const useGetProgramDetail = (programIdx: number) => { return { data }; }; -export { useGetProgramDetail }; +export { useGetMonthCalendar, useGetProgramDetail }; diff --git a/components/NavBar.tsx b/components/NavBar.tsx index ab19362..ed5274b 100644 --- a/components/NavBar.tsx +++ b/components/NavBar.tsx @@ -18,7 +18,6 @@ const NavBar = () => { return ( <> -