chore: remove unused imports and args (#271)
This commit is contained in:
@@ -72,7 +72,7 @@ export default function AutoLoad({ addRows }: Props): JSX.Element | null {
|
|||||||
<div>
|
<div>
|
||||||
{status !== AutoLoadStatus.ERROR && (
|
{status !== AutoLoadStatus.ERROR && (
|
||||||
<div className=''>
|
<div className=''>
|
||||||
{Array.from({ length: 8 }).map((_, i) => (
|
{Array.from({ length: 8 }).map(() => (
|
||||||
<Skeleton style={{ marginBottom: 30 }} height={40} />
|
<Skeleton style={{ marginBottom: 30 }} height={40} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import type { Course } from '@shared/types/Course';
|
import type { Course } from '@shared/types/Course';
|
||||||
import Spinner from '@views/components/common/Spinner';
|
|
||||||
import Text from '@views/components/common/Text/Text';
|
import Text from '@views/components/common/Text/Text';
|
||||||
import { CourseCatalogScraper } from '@views/lib/CourseCatalogScraper';
|
import { CourseCatalogScraper } from '@views/lib/CourseCatalogScraper';
|
||||||
import { SiteSupport } from '@views/lib/getSiteSupport';
|
import { SiteSupport } from '@views/lib/getSiteSupport';
|
||||||
@@ -62,7 +61,7 @@ export default function Description({ course }: DescriptionProps): JSX.Element {
|
|||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
{status === LoadStatus.LOADING &&
|
{status === LoadStatus.LOADING &&
|
||||||
Array.from({ length: 5 }).map((_, i) => <Skeleton style={{ marginBottom: 10 }} height={35} />)}
|
Array.from({ length: 5 }).map(() => <Skeleton style={{ marginBottom: 10 }} height={35} />)}
|
||||||
{status === LoadStatus.DONE && (
|
{status === LoadStatus.DONE && (
|
||||||
<ul className='ml-6 mt-1.5 list-disc list-outside space-y-1.5'>
|
<ul className='ml-6 mt-1.5 list-disc list-outside space-y-1.5'>
|
||||||
{description.map(line => {
|
{description.map(line => {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import type { Course } from '@shared/types/Course';
|
import type { Course } from '@shared/types/Course';
|
||||||
import type { Distribution, LetterGrade } from '@shared/types/Distribution';
|
import type { Distribution, LetterGrade } from '@shared/types/Distribution';
|
||||||
import { extendedColors } from '@shared/types/ThemeColors';
|
import { extendedColors } from '@shared/types/ThemeColors';
|
||||||
import Spinner from '@views/components/common/Spinner';
|
|
||||||
import Text from '@views/components/common/Text/Text';
|
import Text from '@views/components/common/Text/Text';
|
||||||
import {
|
import {
|
||||||
NoDataError,
|
NoDataError,
|
||||||
|
|||||||
Reference in New Issue
Block a user