minor changes
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user