chore: update CalendarCourseCell.tsx

This commit is contained in:
Abhinav Chadaga
2024-02-17 14:37:48 -06:00
committed by doprz
parent 0ed8d9c82d
commit 387b508e40

View File

@@ -1,5 +1,4 @@
import { Course, Status } from '@shared/types/Course';
import { CourseMeeting } from '@shared/types/CourseMeeting';
import { Status } from '@shared/types/Course';
import clsx from 'clsx';
import React from 'react';
import { CourseColors, pickFontColor } from 'src/shared/util/colors';
@@ -51,10 +50,10 @@ const CalendarCourseCell: React.FC<CalendarCourseCellProps> = ({ course, meeting
<Text
variant='h1-course'
className={clsx('-my-0.8 leading-tight', {
truncate: meeting,
truncate: timeAndLocation,
})}
>
{course.department} {course.number} - {course.instructors[0].lastName}
{courseDeptAndInstr}
</Text>
{meeting && (
<Text variant='h3-course' className='-mb-0.5'>