diff --git a/src/views/components/common/Link/Link.tsx b/src/views/components/common/Link/Link.tsx index 51a21ecac..6939c2ddf 100644 --- a/src/views/components/common/Link/Link.tsx +++ b/src/views/components/common/Link/Link.tsx @@ -28,7 +28,7 @@ export default function Link(props: PropsWithChildren) { {status === LoadStatus.ERROR && ( - + Please refresh the page and log back in using your UT EID and password )} @@ -72,7 +72,7 @@ function DescriptionLine({ line }: LineProps) { }); return ( - + {line} ); diff --git a/src/views/components/injected/CoursePopup/CourseHeader/CourseButtons/CourseButtons.tsx b/src/views/components/injected/CoursePopup/CourseHeader/CourseButtons/CourseButtons.tsx index d89c6dde8..5f83b836d 100644 --- a/src/views/components/injected/CoursePopup/CourseHeader/CourseButtons/CourseButtons.tsx +++ b/src/views/components/injected/CoursePopup/CourseHeader/CourseButtons/CourseButtons.tsx @@ -87,7 +87,7 @@ export default function CourseButtons({ course, activeSchedule }: Props) { className={styles.button} title='Search for this professor on RateMyProfessor' > - + RateMyProf @@ -98,7 +98,7 @@ export default function CourseButtons({ course, activeSchedule }: Props) { className={styles.button} title='Search for syllabi for this course' > - + Syllabi @@ -109,7 +109,7 @@ export default function CourseButtons({ course, activeSchedule }: Props) { className={styles.button} title='Search for textbooks for this course' > - + Textbook @@ -121,7 +121,8 @@ export default function CourseButtons({ course, activeSchedule }: Props) { type={isCourseSaved ? 'danger' : 'success'} className={styles.button} > - + + {isCourseSaved ? 'Remove' : 'Add'} diff --git a/src/views/components/injected/CoursePopup/CourseHeader/CourseHeader.tsx b/src/views/components/injected/CoursePopup/CourseHeader/CourseHeader.tsx index 123b38631..0dc97ab49 100644 --- a/src/views/components/injected/CoursePopup/CourseHeader/CourseHeader.tsx +++ b/src/views/components/injected/CoursePopup/CourseHeader/CourseHeader.tsx @@ -5,7 +5,7 @@ import Card from '@views/components/common/Card/Card'; import Icon from '@views/components/common/Icon/Icon'; import Link from '@views/components/common/Link/Link'; import Text from '@views/components/common/Text/Text'; -import CourseButtons from './CourseButtons/CourseButtons'; +// import CourseButtons from './CourseButtons/CourseButtons'; import styles from './CourseHeader.module.scss'; type Props = { @@ -26,23 +26,23 @@ export default function CourseHeader({ course, activeSchedule, onClose }: Props) return ( - +
- + {course.courseName} ({course.department} {course.number}) #{course.uniqueId}
- + {`with ${!course.instructors.length ? 'TBA' : ''}`} {course.instructors.map((instructor, index) => { const name = instructor.toString({ @@ -58,8 +58,8 @@ export default function CourseHeader({ course, activeSchedule, onClose }: Props) {numInstructors > 1 && index === course.instructors.length - 1 ? '& ' : ''} @@ -71,15 +71,15 @@ export default function CourseHeader({ course, activeSchedule, onClose }: Props) })} {course.schedule.meetings.map(meeting => ( - - + + {meeting.getDaysString({ format: 'long', separator: 'short', })} {' at '} - + {meeting.getTimeString({ separator: 'to', capitalize: true, @@ -87,8 +87,8 @@ export default function CourseHeader({ course, activeSchedule, onClose }: Props) {' in '} ))} - + {/* */}
); } diff --git a/src/views/components/injected/CoursePopup/GradeDistribution/GradeDistribution.tsx b/src/views/components/injected/CoursePopup/GradeDistribution/GradeDistribution.tsx index af695d85b..ae4ed2b18 100644 --- a/src/views/components/injected/CoursePopup/GradeDistribution/GradeDistribution.tsx +++ b/src/views/components/injected/CoursePopup/GradeDistribution/GradeDistribution.tsx @@ -203,18 +203,18 @@ export default function GradeDistribution({ course }: Props) { {status === DataStatus.LOADING && } {status === DataStatus.ERROR && ( - + There was an error fetching the grade distribution data - + )} {status === DataStatus.NOT_FOUND && ( - + No grade distribution data was found for this course - + )} diff --git a/src/views/components/injected/TableRow/TableRow.tsx b/src/views/components/injected/TableRow/TableRow.tsx index 34f04ab60..2058d9255 100644 --- a/src/views/components/injected/TableRow/TableRow.tsx +++ b/src/views/components/injected/TableRow/TableRow.tsx @@ -76,7 +76,7 @@ export default function TableRow({ row, isSelected, activeSchedule, onClick }: P element.classList.remove(styles.isConflict); setConflicts([]); }; - }, [activeSchedule, course]); + }, [activeSchedule, course, element.classList]); if (!container) { return null; @@ -91,7 +91,7 @@ export default function TableRow({ row, isSelected, activeSchedule, onClick }: P
{conflicts.map(c => ( - + {c.department} {c.number} ({c.uniqueId}) ))}