fix: use StatusType
This commit is contained in:
@@ -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 Text from '@views/components/common/Text/Text';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
@@ -15,7 +15,7 @@ import CancelledIcon from '~icons/material-symbols/warning';
|
|||||||
export interface CalendarCourseCellProps {
|
export interface CalendarCourseCellProps {
|
||||||
courseDeptAndInstr: string;
|
courseDeptAndInstr: string;
|
||||||
timeAndLocation?: string;
|
timeAndLocation?: string;
|
||||||
status: Status;
|
status: StatusType;
|
||||||
colors: CourseColors;
|
colors: CourseColors;
|
||||||
className?: string;
|
className?: string;
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@ export interface CalendarCourseCellProps {
|
|||||||
* @param {CalendarCourseCellProps} props - The component props.
|
* @param {CalendarCourseCellProps} props - The component props.
|
||||||
* @param {string} props.courseDeptAndInstr - The course department and instructor.
|
* @param {string} props.courseDeptAndInstr - The course department and instructor.
|
||||||
* @param {string} props.timeAndLocation - The time and location of the course.
|
* @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 {Colors} props.colors - The colors for styling the cell.
|
||||||
* @param {string} props.className - Additional CSS class name for the cell.
|
* @param {string} props.className - Additional CSS class name for the cell.
|
||||||
* @returns {JSX.Element} The rendered component.
|
* @returns {JSX.Element} The rendered component.
|
||||||
|
|||||||
@@ -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 { StatusIcon } from '@shared/util/icons';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
@@ -11,7 +11,7 @@ type SizeType = 'small' | 'mini';
|
|||||||
* Props for CourseStatus
|
* Props for CourseStatus
|
||||||
*/
|
*/
|
||||||
export interface CourseStatusProps {
|
export interface CourseStatusProps {
|
||||||
status: Status;
|
status: StatusType;
|
||||||
size: SizeType;
|
size: SizeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user