aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/App.js4
-rw-r--r--src/web/src/components/Search/List/SearchList.js6
-rw-r--r--src/web/src/components/Shared/Nbsp.js2
-rw-r--r--src/web/src/components/Transfers/Transfers.js4
4 files changed, 5 insertions, 11 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js
index b04b884e..8c879480 100644
--- a/src/web/src/components/App.js
+++ b/src/web/src/components/App.js
@@ -277,7 +277,9 @@ class App extends Component {
}/>
<Route path={`${urlBase}/downloads`} render={
(props) =>
- this.withTokenCheck(<div className='page'><Transfers {...props} direction='download' server={applicationState.server}/></div>)
+ this.withTokenCheck(<div className='page'>
+ <Transfers {...props} direction='download' server={applicationState.server}/>
+ </div>)
}/>
<Route path={`${urlBase}/system/:tab?`} render={
(props) => this.withTokenCheck(
diff --git a/src/web/src/components/Search/List/SearchList.js b/src/web/src/components/Search/List/SearchList.js
index fc8929ac..44c30985 100644
--- a/src/web/src/components/Search/List/SearchList.js
+++ b/src/web/src/components/Search/List/SearchList.js
@@ -9,8 +9,6 @@ import {
Table,
Icon,
Loader,
- Segment,
- Header,
List,
} from 'semantic-ui-react';
@@ -21,10 +19,6 @@ const SearchList = ({
onRemove = () => { },
onStop = () => { },
}) => {
- const searchCount = useMemo(() => {
- return Object.values(searches).length
- }, [searches])
-
return (
<Card className='search-list-card' raised>
<Card.Content>
diff --git a/src/web/src/components/Shared/Nbsp.js b/src/web/src/components/Shared/Nbsp.js
index e3e61b53..1c8bbfa2 100644
--- a/src/web/src/components/Shared/Nbsp.js
+++ b/src/web/src/components/Shared/Nbsp.js
@@ -1,5 +1,3 @@
-import React from 'react';
-
const Nbsp = () => {
return ' ';
}
diff --git a/src/web/src/components/Transfers/Transfers.js b/src/web/src/components/Transfers/Transfers.js
index bf43f8a1..30905f74 100644
--- a/src/web/src/components/Transfers/Transfers.js
+++ b/src/web/src/components/Transfers/Transfers.js
@@ -34,7 +34,7 @@ const Transfers = ({ direction, server }) => {
return () => {
clearInterval(interval);
}
- }, [direction]);
+ }, [direction]); // eslint-disable-line react-hooks/exhaustive-deps
useMemo(() => {
// this is used to prevent weird update issues if switching
@@ -44,7 +44,7 @@ const Transfers = ({ direction, server }) => {
// before the connecting animation shows. this memo fires the instant
// the direction prop changes, preventing this flash.
setConnecting(true);
- }, [direction]);
+ }, [direction]); // eslint-disable-line react-hooks/exhaustive-deps
const fetch = async () => {
try {