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

View File

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

View File

@@ -15,7 +15,7 @@ if (!support) {
} }
if (support === SiteSupport.EXTENSION_POPUP) { if (support === SiteSupport.EXTENSION_POPUP) {
render(<PopupMain />, document.body); render(<PopupMain />, document.getElementById('root'));
} }
if (support === SiteSupport.MY_CALENDAR) { if (support === SiteSupport.MY_CALENDAR) {