Revert "update"

This reverts commit 8edd062588.
This commit is contained in:
knownotunknown
2024-02-17 13:06:46 -06:00
parent 8edd062588
commit 3c7b35d5f3
3 changed files with 11 additions and 17 deletions

View File

@@ -2,9 +2,7 @@ import React from 'react';
import { DAY_MAP } from 'src/shared/types/CourseMeeting';
import styles from './CalendarGrid.module.scss';
import CalendarCell from '../CalendarGridCell/CalendarGridCell';
import CalendarCourseCell from '../CalendarCourseCell/CalendarCourseCell';
import { Chip } from '../Chip/Chip';
import { CourseMeeting } from 'src/shared/types/CourseMeeting';
const daysOfWeek = Object.keys(DAY_MAP).filter(key => !['S', 'SU'].includes(key));
const hoursOfDay = Array.from({ length: 14 }, (_, index) => index + 8);
@@ -24,14 +22,14 @@ for (let i = 0; i < 13; i++) {
}
interface Props {
courseCells: typeof CalendarCourseCell[];
CourseMeetingBlocks: CourseMeeting[];
}
/**
* Grid of CalendarGridCell components forming the user's course schedule calendar view
* @param props
*/
export function Calendar({ courseCells }: React.PropsWithChildren<Props>): JSX.Element {
export function Calendar({ courseMeetingBlocks }: React.PropsWithChildren<Props>): JSX.Element {
return (
<div className={styles.calendar}>
@@ -56,16 +54,12 @@ export function Calendar({ courseCells }: React.PropsWithChildren<Props>): JSX.E
{day}
</div>
))}
{grid.map((row) => row)}
{grid.map((row, rowIndex) => row)}
</div>
</div>
{courseCells.map((Block: typeof CalendarCourseCell) => (
<div key={`${Block}`}
style ={{
gridColumn: `1`,
gridRow: `1`
}}>
<Chip label='test'/>
{courseMeetingBlocks.map((block: CourseMeeting, index: number) => (
<div key={index}>
{block}
</div>
))}
</div>