Problem loading AI review summary.
; + } + + if (!summary) { + return{summary}
+Visit Rate My Professors
@@ -67,11 +77,20 @@ export function LoadingSingleProfInfo() { } type Props = { + open: boolean; + searchQuery: SearchQuery; rmp: RMP; + syllabus_uri?: string | null; }; -export default function SingleProfInfo({ rmp }: Props) { +export default function SingleProfInfo({ + open, + searchQuery, + rmp, + syllabus_uri, +}: Props) { const [showMore, setShowMore] = useState(false); + const [showSyllabus, setShowSyllabus] = useState(false); if (rmp.numRatings == 0) { return ( @@ -164,13 +183,34 @@ export default function SingleProfInfo({ rmp }: Props) { )}Problem loading AI review summary.
; + } + + return ( + <> +| + Weighting + | +% | +
|---|---|
| {row.category} | +{row.percentage} | +
| + Grade + | ++ Scale + | +
|---|---|
| {row.grade} | +{row.range} | +
{syllabus.summary}
+ ) : ( +Could not summarize the syllabus
+ )} + + View Syllabus + +