Skip to content

Commit

Permalink
Remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
danmindru committed Oct 15, 2023
1 parent 27bda21 commit 8c009ba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PanelGroup, Panel, PanelResizeHandle } from 'react-resizable-panels';
import MediaQuery, { useMediaQuery } from 'react-responsive';
import clsx from 'clsx';
import { useEffect, useMemo, useRef, useState } from 'react';
import { useAsync, useMount } from 'react-use';
import { useAsync } from 'react-use';
import CssBaseline from '@mui/material/CssBaseline';
import { ThemeProvider } from '@mui/material/styles';
import { getTheme } from 'shared/theme';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Typography } from '@mui/material';
import Tooltip from '@mui/material/Tooltip';

import { ReactComponent as AllFailed } from 'shared/images/search/AllFailed.svg';
import { ReactComponent as Timeout } from 'shared/images/search/Timeout.svg';

import { ResultChart } from 'results/ResultChart/ResultChart';
import { ResultStats } from 'results/ResultStats/ResultStats';
Expand All @@ -34,7 +33,6 @@ const ResultContent = ({

const {
allFailed,
isPartiallyComplete,
isInProgress,
failedItems,
successfulItems,
Expand Down
8 changes: 0 additions & 8 deletions packages/ui/src/results/Result/useResultProperties.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useMemo } from 'react';
import differenceInMinutes from 'date-fns/differenceInMinutes';

import { ClobbrUIListItem } from 'models/ClobbrUIListItem';
Expand Down Expand Up @@ -42,13 +41,6 @@ export const isResultPartiallyComplete = ({
};

export const useResultProperties = ({ item }: { item?: ClobbrUIListItem }) => {
const itemInternal = item || {
latestResult: {
endDate: new Date(),
startDate: new Date()
}
};

if (!item) {
return {
isInProgress: false,
Expand Down

0 comments on commit 8c009ba

Please sign in to comment.