From afa634f0853dc16cf313c129434d49bf132388d0 Mon Sep 17 00:00:00 2001 From: Samuel Gunter Date: Sun, 17 Mar 2024 01:48:09 -0500 Subject: [PATCH] fix: clean up #173 (#174) --- .../components/calendar/CalendarGrid/CalendarGrid.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/components/calendar/CalendarGrid/CalendarGrid.tsx b/src/views/components/calendar/CalendarGrid/CalendarGrid.tsx index 474b8bf8..319a1b2d 100644 --- a/src/views/components/calendar/CalendarGrid/CalendarGrid.tsx +++ b/src/views/components/calendar/CalendarGrid/CalendarGrid.tsx @@ -16,7 +16,7 @@ interface Props { setCourse: React.Dispatch>; } -function CalendarHour(hour: number) { +function CalendarHour({ hour }: { hour: number }) { return (
@@ -31,7 +31,7 @@ function makeGridRow(row: number, cols: number): JSX.Element { return ( <> - {CalendarHour(hour)} +
{[...Array(cols).keys()].map(col => ( @@ -64,7 +64,7 @@ export default function CalendarGrid({
))} {[...Array(13).keys()].map(i => makeGridRow(i, 5))} - {CalendarHour(21)} + {Array(6) .fill(1) .map(() => ( @@ -130,7 +130,7 @@ function AccountForCourseConflicts({ courseCells, setCourse }: AccountForCourseC