diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-05-25 09:50:12 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-05-25 09:50:12 -0500 |
| commit | f048a22993e7ff02365b856e1ca626b33d70e05e (patch) | |
| tree | 4296327c25844bf639813c82617b604221333019 /src/web | |
| parent | 998b1f67414903af897e6f2143b674757622f9f7 (diff) | |
| download | slskd-f048a22993e7ff02365b856e1ca626b33d70e05e.tar.gz | |
linting errors
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/components/App.js | 4 | ||||
| -rw-r--r-- | src/web/src/components/Search/List/SearchList.js | 6 | ||||
| -rw-r--r-- | src/web/src/components/Shared/Nbsp.js | 2 | ||||
| -rw-r--r-- | src/web/src/components/Transfers/Transfers.js | 4 |
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 { |
