This commit is contained in:
Daniel Shleifman
2021-05-31 15:21:56 +03:00
parent 695a7c53b6
commit aab85cc366
13 changed files with 191 additions and 260 deletions

View File

@@ -34,7 +34,6 @@ export default function SingleBlock({
width={boxHeight}
fillAfterStrokeEnabled
preventDefault={false}
// eslint-disable-next-line react/jsx-props-no-spreading
{...(isComplete
? { fill: processCompletedColor }
: inProgress && {

View File

@@ -28,9 +28,7 @@ export const useUpdateCache = hash => {
}, 100)
} else clearInterval(timerID.current)
return () => {
clearInterval(timerID.current)
}
return () => clearInterval(timerID.current)
}, [hash])
return cache

View File

@@ -2,14 +2,13 @@ import { NoImageIcon } from 'icons'
import { getPeerString, humanizeSize } from 'utils/Utils'
import { CopyToClipboard } from 'react-copy-to-clipboard'
import { useEffect, useState } from 'react'
import { Button, ButtonGroup, Typography } from '@material-ui/core'
import { Button } from '@material-ui/core'
import ptt from 'parse-torrent-title'
import {
ArrowDownward as ArrowDownwardIcon,
ArrowUpward as ArrowUpwardIcon,
SwapVerticalCircle as SwapVerticalCircleIcon,
ViewAgenda as ViewAgendaIcon,
Cached as CachedIcon,
} from '@material-ui/icons'
import axios from 'axios'
import { streamHost, torrentsHost, viewedHost } from 'utils/Hosts'
@@ -109,7 +108,6 @@ export default function DialogTorrentDetailsContent({ closeDialog, torrent }) {
<DialogHeader
onClose={closeDialog}
title={isDetailedCacheView ? 'Detailed Cache View' : 'Torrent Details'}
// eslint-disable-next-line react/jsx-props-no-spreading
{...(isDetailedCacheView && { onBack: () => setIsDetailedCacheView(false) })}
/>

View File

@@ -204,10 +204,6 @@ export const Table = styled.table`
tbody tr {
border-bottom: 1px solid #ddd;
/* :nth-of-type(even) {
background: #f3f3f3;
} */
:last-of-type {
border-bottom: 2px solid #009879;
}