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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user