From 06f28e2490aab6c630e40dc1f757842c74460420 Mon Sep 17 00:00:00 2001 From: Tyler Hill Date: Mon, 14 Oct 2024 20:20:53 -0500 Subject: [PATCH] Lint --- src/components/CourseOverview.tsx | 3 +-- src/components/Landing.tsx | 1 + src/components/ProfessorOverview.tsx | 2 +- src/components/SingleGradesInfo.tsx | 2 +- src/components/TopMenu.tsx | 1 + src/pages/index.tsx | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/CourseOverview.tsx b/src/components/CourseOverview.tsx index 2c1fa3b..84389d9 100644 --- a/src/components/CourseOverview.tsx +++ b/src/components/CourseOverview.tsx @@ -1,8 +1,7 @@ import React from 'react'; -import SingleGradesInfo from '~components/SingleGradesInfo'; -import { searchQueryLabel } from '~utils/SearchQuery'; import { TRENDS_URL } from '~data/config'; +import { searchQueryLabel } from '~utils/SearchQuery'; const gpaToLetterGrade = (gpa: number): string => { if (gpa >= 4.0) return 'A'; diff --git a/src/components/Landing.tsx b/src/components/Landing.tsx index 2065109..06145cb 100644 --- a/src/components/Landing.tsx +++ b/src/components/Landing.tsx @@ -5,6 +5,7 @@ import gradient from 'data-base64:../../assets/gradient.png'; import tutorial1 from 'data-base64:../../assets/tutorial1.png'; import tutorial2 from 'data-base64:../../assets/tutorial2.png'; import React, { useEffect, useState } from 'react'; + import { TRENDS_URL } from '~data/config'; const STORAGE_KEY = 'page'; diff --git a/src/components/ProfessorOverview.tsx b/src/components/ProfessorOverview.tsx index bef71b6..0adc54d 100644 --- a/src/components/ProfessorOverview.tsx +++ b/src/components/ProfessorOverview.tsx @@ -4,6 +4,7 @@ import React, { useEffect, useState } from 'react'; import SingleGradesInfo from '~components/SingleGradesInfo'; import SingleProfInfo from '~components/SingleProfInfo'; +import { TRENDS_URL } from '~data/config'; import type { RMPInterface } from '~data/fetchFromRmp'; import fetchWithCache, { cacheIndexNebula, @@ -12,7 +13,6 @@ import fetchWithCache, { import type { GenericFetchedData, GradesType } from '~pages/CoursePage'; import type SearchQuery from '~utils/SearchQuery'; import { searchQueryLabel } from '~utils/SearchQuery'; -import { TRENDS_URL } from '~data/config'; const fallbackSrc = 'https://profiles.utdallas.edu/img/default.png'; diff --git a/src/components/SingleGradesInfo.tsx b/src/components/SingleGradesInfo.tsx index 0d42673..1f02960 100644 --- a/src/components/SingleGradesInfo.tsx +++ b/src/components/SingleGradesInfo.tsx @@ -2,6 +2,7 @@ import { Skeleton } from '@mui/material'; import React from 'react'; import BarGraph from '~components/BarGraph'; +import { TRENDS_URL } from '~data/config'; import type { GenericFetchedData, GradesType } from '~pages/CoursePage'; import type SearchQuery from '~utils/SearchQuery'; import { @@ -9,7 +10,6 @@ import { convertToProfOnly, searchQueryLabel, } from '~utils/SearchQuery'; -import { TRENDS_URL } from '~data/config'; function convertNumbersToPercents(distribution: GradesType): number[] { const total = distribution.total; diff --git a/src/components/TopMenu.tsx b/src/components/TopMenu.tsx index 6825fd6..9bb43fa 100644 --- a/src/components/TopMenu.tsx +++ b/src/components/TopMenu.tsx @@ -1,5 +1,6 @@ import gradient from 'data-base64:../../assets/gradient.png'; import React from 'react'; + import { TRENDS_URL } from '~data/config'; /** diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 4da1b97..7a844da 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -7,6 +7,7 @@ import Landing from '~components/Landing'; import ProfessorOverview from '~components/ProfessorOverview'; import SearchResultsTable from '~components/SearchResultsTable'; import TopMenu from '~components/TopMenu'; +import { TRENDS_URL } from '~data/config'; import type { RMPInterface } from '~data/fetchFromRmp'; import fetchWithCache, { cacheIndexNebula, @@ -19,7 +20,6 @@ import { searchQueryEqual, searchQueryLabel, } from '~utils/SearchQuery'; -import { TRENDS_URL } from '~data/config'; type GenericFetchedDataError = { state: 'error';