diff --git a/apps/friends-react-native/src/infrastructures/createTimetableViewService.ts b/apps/friends-react-native/src/infrastructures/createTimetableViewService.ts index b658de9..7ea61af 100644 --- a/apps/friends-react-native/src/infrastructures/createTimetableViewService.ts +++ b/apps/friends-react-native/src/infrastructures/createTimetableViewService.ts @@ -11,8 +11,8 @@ export const createTimetableViewService = (): TimetableViewService => { }, getHourRange: (timetable) => { const times = timetable.lectures.flatMap((l) => l.classPlaceAndTimes); - const start = Math.min(...times.map((t) => Math.floor(t.startMinute / 60)), 8) as Hour; - const end = Math.max(...times.map((t) => Math.ceil(t.endMinute / 60)), 22) as Hour; + const start = Math.min(...times.map((t) => Math.floor(t.startMinute / 60)), 9) as Hour; + const end = Math.max(...times.map((t) => Math.floor(t.endMinute / 60)), 17) as Hour; return [start, end]; }, getDayLabel: (day) => ({ 0: '월', 1: '화', 2: '수', 3: '목', 4: '금', 5: '토', 6: '일' })[day], diff --git a/apps/friends-react-native/src/usecases/timetableViewService.ts b/apps/friends-react-native/src/usecases/timetableViewService.ts index ca6f228..5f6e39c 100644 --- a/apps/friends-react-native/src/usecases/timetableViewService.ts +++ b/apps/friends-react-native/src/usecases/timetableViewService.ts @@ -4,7 +4,7 @@ import { FullTimetable } from '../entities/timetable'; export type TimetableViewService = { getDayRange: (table: Pick) => [Day, Day]; - getHourRange: (table: Pick) => [Hour, Hour]; + getHourRange: (table: Pick) => [Hour, Hour]; // Note: [9, 17] 이면 9:00 ~ 17:59 를 의미한다 getDayLabel: (day: Day) => string; getLessonColor: (lesson: FullTimetable['lectures'][number], palette: Color[]) => { bg: string; fg: string }; };