diff --git a/src/views/components/common/CalendarGrid/CalendarGrid.tsx b/src/views/components/common/CalendarGrid/CalendarGrid.tsx index 582faa9f..4b90edf1 100644 --- a/src/views/components/common/CalendarGrid/CalendarGrid.tsx +++ b/src/views/components/common/CalendarGrid/CalendarGrid.tsx @@ -21,12 +21,16 @@ const Calendar: React.FC = (props) => {
{/* Empty cell in the top-left corner */}
- + {/* Displaying day labels */} + {daysOfWeek.map(day => ( +
+ {day} +
+ ))}
{/* Displaying the rest of the calendar */}
-
{hoursOfDay.map((hour) => (
@@ -36,12 +40,6 @@ const Calendar: React.FC = (props) => { ))}
- {/* Displaying day labels */} - {daysOfWeek.map(day => ( -
- {day} -
- ))} {grid.map((row, rowIndex) => ( row ))}