chore: fix lint errors
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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<SiteSupportType, 'COURSE_CATALOG_DETAILS' | 'COURSE_CATALOG_LIST'>;
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
<Divider orientation='horizontal' className='my-4' size='100%' />
|
||||
<div
|
||||
ref={toggleRef}
|
||||
className="mb-4 flex items-center justify-between border border-ut-offwhite rounded p-2 text-left"
|
||||
className='mb-4 flex items-center justify-between border border-ut-offwhite rounded p-2 text-left'
|
||||
onClick={handleClick}
|
||||
style={{ cursor: 'pointer' }}
|
||||
>
|
||||
|
||||
@@ -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<HeadingAndActionProps> = ({
|
||||
const handleCopy = () => {
|
||||
navigator.clipboard.writeText(uniqueId.toString());
|
||||
};
|
||||
|
||||
|
||||
const handleOpenRateMyProf = async () => {
|
||||
const openTabs = instructors.map(instructor => {
|
||||
const instructorSearchTerm = getInstructorFullName(instructor);
|
||||
|
||||
Reference in New Issue
Block a user