diff --git a/src/components/common/Compare/compare.tsx b/src/components/common/Compare/compare.tsx
index f8b86647..e2701eb1 100644
--- a/src/components/common/Compare/compare.tsx
+++ b/src/components/common/Compare/compare.tsx
@@ -15,7 +15,6 @@ type CompareProps = {
grades: { [key: string]: GenericFetchedData
};
rmp: { [key: string]: GenericFetchedData };
removeFromCompare: { (arg0: SearchQuery): void };
- colorMap: { [key: string]: string };
};
function convertNumbersToPercents(distribution: GradesType): number[] {
@@ -25,13 +24,7 @@ function convertNumbersToPercents(distribution: GradesType): number[] {
);
}
-const Compare = ({
- courses,
- grades,
- rmp,
- removeFromCompare,
- colorMap,
-}: CompareProps) => {
+const Compare = ({ courses, grades, rmp, removeFromCompare }: CompareProps) => {
if (courses.length === 0) {
return Click a checkbox to add something to compare.
;
}
@@ -97,7 +90,6 @@ const Compare = ({
grades={grades}
rmp={rmp}
removeFromCompare={removeFromCompare}
- colorMap={colorMap}
/>
);
diff --git a/src/components/common/CompareTable/compareTable.tsx b/src/components/common/CompareTable/compareTable.tsx
index e785bcce..c10da18e 100644
--- a/src/components/common/CompareTable/compareTable.tsx
+++ b/src/components/common/CompareTable/compareTable.tsx
@@ -8,7 +8,6 @@ import {
TableContainer,
TableHead,
TableRow,
- Tooltip,
Typography,
} from '@mui/material';
import React, { useState } from 'react';
@@ -16,6 +15,7 @@ import React, { useState } from 'react';
import SearchQuery, {
convertToProfOnly,
} from '../../../modules/SearchQuery/SearchQuery';
+import searchQueryColors from '../../../modules/searchQueryColors/searchQueryColors';
import searchQueryLabel from '../../../modules/searchQueryLabel/searchQueryLabel';
import type { RMPInterface } from '../../../pages/api/ratemyprofessorScraper';
import type {
@@ -82,12 +82,6 @@ function GradeOrRmpRow