diff --git a/frontend/alert/components/managealert/AlertHeader.tsx b/frontend/alert/components/managealert/AlertHeader.tsx index 1e0107a6e..df7a5e6a8 100644 --- a/frontend/alert/components/managealert/AlertHeader.tsx +++ b/frontend/alert/components/managealert/AlertHeader.tsx @@ -4,20 +4,6 @@ import { GridItem, GridCourseTitle, } from "pcx-shared-components/src/common/layout"; -import { P } from "../common/common"; -import ToggleSwitch from "../common/ToggleSwitch"; -import { AlertAction, SectionStatus } from "../../types"; -import { Img } from "../common/common"; -import { configureScope } from "@sentry/browser"; -import { Flex } from "pcx-shared-components/src/common/layout"; - -const GridTitle = styled.div` - color: #282828; - font-size: 1rem; - font-family: "Inter", sans-serif; - font-weight: bold; - padding-top: 0.5rem; -`; const GridSubtitle = styled.div` color: #282828; @@ -28,18 +14,6 @@ const GridSubtitle = styled.div` white-space: nowrap; `; -const TrashImg = styled(Img)` - cursor: pointer; - opacity: 75%; - - &:hover { - opacity: 100%; - } - &:active { - transform: translateY(0.1rem); - } -`; - // Component for an alert entry (renders as a row in CSS grid) interface AlertHeaderProps { course: string; @@ -51,64 +25,17 @@ export const AlertHeader = ({ course, rownum }: AlertHeaderProps) => { {course.toUpperCase()} - {/* used to make sure grid line goes to end */} - - - - - - - + {Array.from({ length: 7 }, (_, index) => ( + + ))} ); }; diff --git a/frontend/alert/components/managealert/ManageAlertUI.tsx b/frontend/alert/components/managealert/ManageAlertUI.tsx index 71288a7cc..205faa58f 100644 --- a/frontend/alert/components/managealert/ManageAlertUI.tsx +++ b/frontend/alert/components/managealert/ManageAlertUI.tsx @@ -91,7 +91,7 @@ export const ManageAlert = ({ const [searchTimeout, setSearchTimeout] = useState(); const [numSelected, setNumSelected] = useState(0); - //Alerts for testing + // Alerts for testing var alert1: Alert = { id: 1, originalCreatedAt: "2023-09-11T12:00:00Z", @@ -201,7 +201,7 @@ export const ManageAlert = ({ * Returns alerts grouped by course * @return grouped alerts */ - const groupedAlerts = alerts + const groupedAlerts = testAlerts .sort((a, b) => a.section.localeCompare(b.section)) .reduce((res, obj) => { const [courseName, midNum, endNum] = obj.section.split("-");