Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Oct 15, 2024
1 parent a285d04 commit 06f28e2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/CourseOverview.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/components/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProfessorOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion src/components/SingleGradesInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ 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 {
convertToCourseOnly,
convertToProfOnly,
searchQueryLabel,
} from '~utils/SearchQuery';
import { TRENDS_URL } from '~data/config';

function convertNumbersToPercents(distribution: GradesType): number[] {
const total = distribution.total;
Expand Down
1 change: 1 addition & 0 deletions src/components/TopMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import gradient from 'data-base64:../../assets/gradient.png';
import React from 'react';

import { TRENDS_URL } from '~data/config';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -19,7 +20,6 @@ import {
searchQueryEqual,
searchQueryLabel,
} from '~utils/SearchQuery';
import { TRENDS_URL } from '~data/config';

type GenericFetchedDataError<T> = {
state: 'error';
Expand Down

0 comments on commit 06f28e2

Please sign in to comment.