diff --git a/src/components/CourseOverview.tsx b/src/components/CourseOverview.tsx index 34b99aa..b06f149 100644 --- a/src/components/CourseOverview.tsx +++ b/src/components/CourseOverview.tsx @@ -1,3 +1,4 @@ +import { Skeleton } from '@mui/material'; import React from 'react'; import { TRENDS_URL } from '~data/config'; @@ -11,15 +12,20 @@ type CourseOverviewProps = { const CourseOverview = ({ course, grades }: CourseOverviewProps) => { return ( -
+
{searchQueryLabel(course)}
- {grades.state === 'done' && ( -- {'Overall grade: ' + grades.data.letter_grade} -
- )} + {(grades.state === 'loading' && ( +Overall grade: A+
++ {'Overall grade: ' + grades.data.letter_grade} +
+ ))} { encodeURIComponent(searchQueryLabel(course)) } target="_blank" - className="underline text-blue-600 hover:text-blue-800 visited:text-purple-600 text-center" + className="underline text-blue-600 hover:text-blue-800 visited:text-purple-600" rel="noreferrer" > See on Trends diff --git a/src/components/SearchResultsTable.tsx b/src/components/SearchResultsTable.tsx index 1b40772..be7a060 100644 --- a/src/components/SearchResultsTable.tsx +++ b/src/components/SearchResultsTable.tsx @@ -117,16 +117,16 @@ function Row({ course, grades, backupGrades, rmp, setPage }: RowProps) { -
-
5.0
+Professor rating
-
5.0
+Difficulty
-
1,000
+Ratings given
-
99%
+Would take again
Visit Rate My Professors
+