Update CalendarCourseCell.tsx
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { Course, Status } from '@shared/types/Course';
|
import { Status } from '@shared/types/Course';
|
||||||
import { CourseMeeting } from '@shared/types/CourseMeeting';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { CourseColors, pickFontColor } from 'src/shared/util/colors';
|
import { CourseColors, pickFontColor } from 'src/shared/util/colors';
|
||||||
@@ -44,10 +43,10 @@ const CalendarCourseCell: React.FC<CalendarCourseCellProps> = ({
|
|||||||
<Text
|
<Text
|
||||||
variant='h1-course'
|
variant='h1-course'
|
||||||
className={clsx('-my-0.8 leading-tight', {
|
className={clsx('-my-0.8 leading-tight', {
|
||||||
truncate: meeting,
|
truncate: timeAndLocation,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{course.department} {course.number} - {course.instructors[0].lastName}
|
{courseDeptAndInstr}
|
||||||
</Text>
|
</Text>
|
||||||
{timeAndLocation && (
|
{timeAndLocation && (
|
||||||
<Text variant='h3-course' className='-mb-0.5'>
|
<Text variant='h3-course' className='-mb-0.5'>
|
||||||
|
|||||||
Reference in New Issue
Block a user