fix: type issues by using correct import (#111)

* fix: use StatusType

* fix: use AutoLoadStatus

* fix: use typof SiteSupport.*

* fix: one more of Status to StatusType

* fix: use import type

* fix: use path alias imports

* fix: use Extract

* fix: remove unnecessary import
This commit is contained in:
Dhruv
2024-02-27 23:55:35 -06:00
committed by doprz
parent 8c069b7ad3
commit 19fe070491
5 changed files with 23 additions and 23 deletions

View File

@@ -2,6 +2,7 @@ import type { ScrapedRow } from '@shared/types/Course';
import useInfiniteScroll from '@views/hooks/useInfiniteScroll';
import { CourseCatalogScraper } from '@views/lib/CourseCatalogScraper';
import { SiteSupport } from '@views/lib/getSiteSupport';
import type { AutoLoadStatusType } from '@views/lib/loadNextCourseCatalogPage';
import {
AutoLoadStatus,
loadNextCourseCatalogPage,
@@ -22,7 +23,7 @@ type Props = {
*/
export default function AutoLoad({ addRows }: Props) {
const [container, setContainer] = useState<HTMLDivElement | null>(null);
const [status, setStatus] = useState<AutoLoadStatus>(AutoLoadStatus.IDLE);
const [status, setStatus] = useState<AutoLoadStatusType>(AutoLoadStatus.IDLE);
useEffect(() => {
const portalContainer = document.createElement('div');