fix: use StatusType

This commit is contained in:
DhruvArora-03
2024-02-26 20:08:30 -06:00
parent 9ccc43ca27
commit 00dd63d9d5
2 changed files with 5 additions and 5 deletions

View File

@@ -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.

View File

@@ -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;
}