diff --git a/src/shared/types/CourseSchedule.ts b/src/shared/types/CourseSchedule.ts
index 6ab6192e..18cf3b0d 100644
--- a/src/shared/types/CourseSchedule.ts
+++ b/src/shared/types/CourseSchedule.ts
@@ -14,10 +14,10 @@ const DAY_MAP = {
} as const;
/** A day of the week that a class is taught */
-type Day = typeof DAY_MAP[keyof typeof DAY_MAP];
+export type Day = typeof DAY_MAP[keyof typeof DAY_MAP];
/** A physical room that a class is taught in */
-type Room = {
+export type Room = {
/** The UT building code for where the class is taught */
building: string;
/** The room number for where the class is taught */
diff --git a/src/views/components/CourseCatalogMain.tsx b/src/views/components/CourseCatalogMain.tsx
index 443fed55..a6701328 100644
--- a/src/views/components/CourseCatalogMain.tsx
+++ b/src/views/components/CourseCatalogMain.tsx
@@ -1,12 +1,12 @@
import React, { useEffect, useState } from 'react';
-import ReactDOM from 'react-dom';
import { Course, CourseRow } from 'src/shared/types/Course';
import useInfiniteScroll from '../hooks/useInfiniteScroll';
+import { useKeyPress } from '../hooks/useKeyPress';
import { CourseScraper } from '../lib/courseCatalog/CourseScraper';
import { populateSearchInputs } from '../lib/courseCatalog/populateSearchInputs';
import { SiteSupport } from '../lib/getSiteSupport';
import ExtensionRoot from './common/ExtensionRoot/ExtensionRoot';
-import CoursePopup from './injected/CoursePopup/CoursePopup';
+import CoursePanel from './injected/CoursePanel/CoursePanel';
import TableHead from './injected/TableHead';
import TableRow from './injected/TableRow';
@@ -45,6 +45,8 @@ export default function CourseCatalogMain({ support }: Props) {
setSelectedCourse(null);
};
+ useKeyPress('Escape', handleClearSelectedCourse);
+
return (
Plus
@@ -56,7 +58,7 @@ export default function CourseCatalogMain({ support }: Props) {
onClick={handleRowButtonClick(row.course)}
/>
))}
- {selectedCourse && }
+ {selectedCourse && }
{isScrolling &&