diff --git a/src/views/components/common/CalendarGrid/CalendarGrid.module.scss b/src/views/components/common/CalendarGrid/CalendarGrid.module.scss index 2f06af5e..158a62e0 100644 --- a/src/views/components/common/CalendarGrid/CalendarGrid.module.scss +++ b/src/views/components/common/CalendarGrid/CalendarGrid.module.scss @@ -40,6 +40,10 @@ line-height: normal; } +.timeAndGrid { + display: flex; +} + .timeColumn { display: flex; min-height: 573px; diff --git a/src/views/components/common/CalendarGrid/CalendarGrid.tsx b/src/views/components/common/CalendarGrid/CalendarGrid.tsx index 025bd11d..f8ffd23f 100644 --- a/src/views/components/common/CalendarGrid/CalendarGrid.tsx +++ b/src/views/components/common/CalendarGrid/CalendarGrid.tsx @@ -31,19 +31,20 @@ const Calendar: React.FC = (props) => { ))} {/* Displaying the rest of the calendar */} -
- {hoursOfDay.map((hour) => ( -
- {hour % 12 === 0 ? 12 : hour % 12}:00 {hour < 12 ? 'AM' : 'PM'} -
- ))} +
+
+ {hoursOfDay.map((hour) => ( +
+ {hour % 12 === 0 ? 12 : hour % 12}:00 {hour < 12 ? 'AM' : 'PM'} +
+ ))} +
+
+ {grid.map((row, rowIndex) => ( + row + ))} +
-
- {grid.map((row, rowIndex) => ( - row - ))} -
-
) };