diff --git a/src/pages/background/background.ts b/src/pages/background/background.ts index 156dd8a3..43bb92ad 100644 --- a/src/pages/background/background.ts +++ b/src/pages/background/background.ts @@ -4,8 +4,8 @@ import { MessageListener } from 'chrome-extension-toolkit'; import onInstall from './events/onInstall'; import onServiceWorkerAlive from './events/onServiceWorkerAlive'; import onUpdate from './events/onUpdate'; -import CESHandler from './handler/CESHandler'; import browserActionHandler from './handler/browserActionHandler'; +import CESHandler from './handler/CESHandler'; import tabManagementHandler from './handler/tabManagementHandler'; import userScheduleHandler from './handler/userScheduleHandler'; diff --git a/src/stories/injected/CourseCatalogInjectedPopup.stories.ts b/src/stories/injected/CourseCatalogInjectedPopup.stories.ts index a9fa0069..481cc9a4 100644 --- a/src/stories/injected/CourseCatalogInjectedPopup.stories.ts +++ b/src/stories/injected/CourseCatalogInjectedPopup.stories.ts @@ -9,7 +9,7 @@ const exampleSchedule: UserSchedule = new UserSchedule({ name: 'Example Schedule', hours: 0, }); -// TODO (achadaga): import this after +// TODO (achadaga): import this after // https://github.com/Longhorn-Developers/UT-Registration-Plus/pull/106 is merged const bevoCourse: Course = new Course({ uniqueId: 47280, diff --git a/src/views/components/CourseCatalogMain.tsx b/src/views/components/CourseCatalogMain.tsx index 54cef399..dde59321 100644 --- a/src/views/components/CourseCatalogMain.tsx +++ b/src/views/components/CourseCatalogMain.tsx @@ -10,24 +10,10 @@ import { useKeyPress } from '@views/hooks/useKeyPress'; import useSchedules from '@views/hooks/useSchedules'; import { CourseCatalogScraper } from '@views/lib/CourseCatalogScraper'; import getCourseTableRows from '@views/lib/getCourseTableRows'; -import type { SiteSupportType } from '@views/lib/getSiteSupport'; +import type { SiteSupport, SiteSupportType } from '@views/lib/getSiteSupport'; import { populateSearchInputs } from '@views/lib/populateSearchInputs'; import React, { useEffect, useState } from 'react'; -import { useKeyPress } from '../hooks/useKeyPress'; -import useSchedules from '../hooks/useSchedules'; -import { CourseCatalogScraper } from '../lib/CourseCatalogScraper'; -import getCourseTableRows from '../lib/getCourseTableRows'; -import type { SiteSupport } from '../lib/getSiteSupport'; -import { populateSearchInputs } from '../lib/populateSearchInputs'; -import ExtensionRoot from './common/ExtensionRoot/ExtensionRoot'; -import AutoLoad from './injected/AutoLoad/AutoLoad'; -import CourseCatalogInjectedPopup from './injected/CourseCatalogInjectedPopup/CourseCatalogInjectedPopup'; -import RecruitmentBanner from './injected/RecruitmentBanner/RecruitmentBanner'; -import TableHead from './injected/TableHead'; -import TableRow from './injected/TableRow/TableRow'; -import TableSubheading from './injected/TableSubheading/TableSubheading'; - interface Props { support: Extract; } diff --git a/src/views/components/PopupMain.tsx b/src/views/components/PopupMain.tsx index 92b07ad2..e8fb1800 100644 --- a/src/views/components/PopupMain.tsx +++ b/src/views/components/PopupMain.tsx @@ -11,7 +11,7 @@ import { handleOpenCalendar } from '@views/components/injected/CourseCatalogInje import useSchedules, { switchSchedule } from '@views/hooks/useSchedules'; import { openTabFromContentScript } from '@views/lib/openNewTabFromContentScript'; import styles from '@views/styles/popupMain.module.scss'; -import React, { useEffect, useRef,useState } from 'react'; +import React, { useEffect, useRef, useState } from 'react'; import CalendarIcon from '~icons/material-symbols/calendar-month'; import RefreshIcon from '~icons/material-symbols/refresh'; @@ -88,7 +88,7 @@ export default function PopupMain() {
diff --git a/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx b/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx index 72910d2c..0ee08156 100644 --- a/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx +++ b/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx @@ -1,9 +1,7 @@ -import { background } from '@shared/messages' +import { background } from '@shared/messages'; +import type { Course } from '@shared/types/Course'; import { Status } from '@shared/types/Course'; import type Instructor from '@shared/types/Instructor'; -import addCourse from '@pages/background/lib/addCourse'; -import removeCourse from '@pages/background/lib/removeCourse'; -import type { Course } from '@shared/types/Course'; import type { UserSchedule } from '@shared/types/UserSchedule'; import { Button } from '@views/components/common/Button/Button'; import { Chip, flagMap } from '@views/components/common/Chip/Chip'; @@ -73,7 +71,7 @@ const HeadingAndActions: React.FC = ({ const handleCopy = () => { navigator.clipboard.writeText(uniqueId.toString()); }; - + const handleOpenRateMyProf = async () => { const openTabs = instructors.map(instructor => { const instructorSearchTerm = getInstructorFullName(instructor);