diff --git a/src/views/components/calendar/CalendarCourseCell/CalendarCourseCell.tsx b/src/views/components/calendar/CalendarCourseCell/CalendarCourseCell.tsx index a3a3475d..f256d2f7 100644 --- a/src/views/components/calendar/CalendarCourseCell/CalendarCourseCell.tsx +++ b/src/views/components/calendar/CalendarCourseCell/CalendarCourseCell.tsx @@ -1,4 +1,4 @@ -import { Status } from '@shared/types/Course'; +import { Status, StatusType } from '@shared/types/Course'; import Text from '@views/components/common/Text/Text'; import clsx from 'clsx'; import React from 'react'; @@ -15,7 +15,7 @@ import CancelledIcon from '~icons/material-symbols/warning'; export interface CalendarCourseCellProps { courseDeptAndInstr: string; timeAndLocation?: string; - status: Status; + status: StatusType; colors: CourseColors; className?: string; } @@ -27,7 +27,7 @@ export interface CalendarCourseCellProps { * @param {CalendarCourseCellProps} props - The component props. * @param {string} props.courseDeptAndInstr - The course department and instructor. * @param {string} props.timeAndLocation - The time and location of the course. - * @param {Status} props.status - The status of the course. + * @param {StatusType} props.status - The status of the course. * @param {Colors} props.colors - The colors for styling the cell. * @param {string} props.className - Additional CSS class name for the cell. * @returns {JSX.Element} The rendered component. diff --git a/src/views/components/common/CourseStatus/CourseStatus.tsx b/src/views/components/common/CourseStatus/CourseStatus.tsx index dd7fdf76..3dcad8aa 100644 --- a/src/views/components/common/CourseStatus/CourseStatus.tsx +++ b/src/views/components/common/CourseStatus/CourseStatus.tsx @@ -1,4 +1,4 @@ -import type { Status } from '@shared/types/Course'; +import type { StatusType } from '@shared/types/Course'; import { StatusIcon } from '@shared/util/icons'; import clsx from 'clsx'; import React from 'react'; @@ -11,7 +11,7 @@ type SizeType = 'small' | 'mini'; * Props for CourseStatus */ export interface CourseStatusProps { - status: Status; + status: StatusType; size: SizeType; }