minor changes

This commit is contained in:
Sriram Hariharan
2023-09-17 19:44:50 -05:00
parent 4f170db07d
commit 89423d24b4
3 changed files with 7 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ export default function CourseHeader({ course, activeSchedule, onClose }: Props)
const numInstructors = course.instructors.length;
const isLast = course.instructors.length > 1 && index === course.instructors.length - 1;
return (
<>
<span key={name}>
{numInstructors > 1 && index === course.instructors.length - 1 ? '& ' : ''}
<Link
key={name}
@@ -66,12 +66,12 @@ export default function CourseHeader({ course, activeSchedule, onClose }: Props)
{name}
</Link>
{numInstructors > 2 && !isLast ? ', ' : ''}
</>
</span>
);
})}
</Text>
{course.schedule.meetings.map(meeting => (
<Text size='medium' className={styles.meeting}>
<Text size='medium' className={styles.meeting} key={meeting.startTime}>
<Text span size='medium' weight='bold' color='black'>
{meeting.getDaysString({
format: 'long',

View File

@@ -88,6 +88,9 @@ export default function GradeDistribution({ course }: Props) {
credits: {
enabled: false,
},
accessibility: {
enabled: false,
},
tooltip: {
headerFormat: '<span style="font-size:small; font-weight:bold">{point.key}</span><table>',
pointFormat: