Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added apps/antalmanac/src/assets/peterportal-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Assessment, RateReview, ShowChart as ShowChartIcon } from '@mui/icons-material';
import { Assessment, ShowChart as ShowChartIcon } from '@mui/icons-material';
import { Box, Paper, Table, TableCell, TableContainer, TableHead, TableRow, useMediaQuery } from '@mui/material';
import { useMemo } from 'react';

import { EnrollmentHistoryPopup } from './EnrollmentHistoryPopup';
import GradesPopup from './GradesPopup';
import { SectionTableProps } from './SectionTable.types';

import PeterPortalIcon from '$assets/peterportal-logo.png';
import { CourseInfoBar } from '$components/RightPane/SectionTable/CourseInfo/CourseInfoBar';
import { CourseInfoButton } from '$components/RightPane/SectionTable/CourseInfo/CourseInfoButton';
import { CourseInfoSearchButton } from '$components/RightPane/SectionTable/CourseInfo/CourseInfoSearchButton';
Expand Down Expand Up @@ -87,6 +88,11 @@ function SectionTable(props: SectionTableProps) {
return (width * numActiveColumns) / TOTAL_NUM_COLUMNS;
}, [activeColumns]);

/**
* Store the size for the custom PeterPortal icon.
*/
const customIconSize = 18;

return (
<>
<Box
Expand All @@ -110,8 +116,15 @@ function SectionTable(props: SectionTableProps) {
<CourseInfoButton
analyticsCategory={analyticsCategory}
analyticsAction={analyticsEnum.classSearch.actions.CLICK_REVIEWS}
text="Reviews"
icon={<RateReview />}
text="PeterPortal"
icon={
<img
src={PeterPortalIcon}
alt="PeterPortal Icon"
width={customIconSize}
height={customIconSize}
/>
}
redirectLink={`https://peterportal.org/course/${courseId}`}
/>

Expand Down
Loading