diff --git a/src/components/common/SearchResultsTable/searchResultsTable.tsx b/src/components/common/SearchResultsTable/searchResultsTable.tsx index 8824066b..1bd9e3d0 100644 --- a/src/components/common/SearchResultsTable/searchResultsTable.tsx +++ b/src/components/common/SearchResultsTable/searchResultsTable.tsx @@ -58,18 +58,21 @@ function LoadingRow() { - - + + - - - 4.00 + + + A+ - - + + @@ -116,10 +119,9 @@ function Row({ <> setOpen(!open)} // opens/closes the card by clicking anywhere on the row - sx={{ '& > *': { borderBottom: 'unset' } }} className="cursor-pointer" > - + - + - + e.stopPropagation() // prevents opening/closing the card when clicking on the text } - className="leading-tight text-lg text-gray-600 dark:text-gray-200 cursor-text" + className="leading-tight text-lg text-gray-600 dark:text-gray-200 cursor-text w-fit" > {searchQueryLabel(course) + ((typeof course.profFirst === 'undefined' && @@ -172,16 +174,16 @@ function Row({ : '')} - + {((typeof grades === 'undefined' || grades.state === 'error') && ( <> )) || (grades.state === 'loading' && ( - A + A+ )) || (grades.state === 'done' && ( @@ -190,7 +192,7 @@ function Row({ placement="top" > {gpaToLetterGrade(grades.data.gpa)} @@ -199,10 +201,10 @@ function Row({ )) || null} - + {((typeof rmp === 'undefined' || rmp.state === 'error') && <>) || (rmp.state === 'loading' && ( - + )) || diff --git a/src/components/common/SingleProfInfo/singleProfInfo.tsx b/src/components/common/SingleProfInfo/singleProfInfo.tsx index 5014f7d4..f2b77090 100644 --- a/src/components/common/SingleProfInfo/singleProfInfo.tsx +++ b/src/components/common/SingleProfInfo/singleProfInfo.tsx @@ -1,4 +1,4 @@ -import { Grid, Skeleton } from '@mui/material'; +import { Grid2 as Grid, Skeleton } from '@mui/material'; import Link from 'next/link'; import React from 'react'; @@ -16,56 +16,61 @@ function SingleProfInfo({ rmp }: Props) { if (rmp.state === 'loading') { return ( - -

- -

+ + +

5.0

+

Professor rating

- -

- -

+ + +

5.0

+

Difficulty

- -

- -

+ + +

1,000

+

Ratings given

- -

- -

+ + +

99%

+

Would take again

+ + +

Visit Rate My Professors

+
+
); } return ( - +

{rmp.data.avgRating}

Professor rating

- +

{rmp.data.avgDifficulty}

Difficulty

- +

{rmp.data.numRatings.toLocaleString()}

Ratings given

- +

{rmp.data.wouldTakeAgainPercent.toFixed(0) + '%'}

Would take again

- + { contentComponent = ( <> - + { addChosenSessions={addChosenSessions} /> - + - + { removeFromCompare={removeFromCompare} /> - +