diff options
author | 2024-04-18 08:18:36 -0600 | |
---|---|---|
committer | 2024-04-18 08:18:36 -0600 | |
commit | c49723056acec489765acb54bae3889ac07f25af (patch) | |
tree | 58bea705d61a728b060e615ce514b8d4a7936c9e /src/containers/download-manager/DownloadManagerScreen.tsx | |
parent | feat: hide all services workspace (#1713) (diff) | |
download | ferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.gz ferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.zst ferdium-app-c49723056acec489765acb54bae3889ac07f25af.zip |
refactor: bring down eslint warnings to zero (#1714)
- install `@eslint-react/eslint-plugin` dependency
- configure `@eslint-react/eslint-plugin` in eslint config
- modernize `lint` command in `package.json`
- disable or fix various reported lint issues
- fix `div` being nested in `p` for settings
- replace deprecated `event.keyCode` with `event.key`
- update isEscKeyPress method and unit tests which used deprecated `event.keyCode`
- allow `eslint` v8 as peer dependency for `@eslint-react/eslint-plugin`
Diffstat (limited to 'src/containers/download-manager/DownloadManagerScreen.tsx')
-rw-r--r-- | src/containers/download-manager/DownloadManagerScreen.tsx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/containers/download-manager/DownloadManagerScreen.tsx b/src/containers/download-manager/DownloadManagerScreen.tsx index cd9686f4d..3413be37a 100644 --- a/src/containers/download-manager/DownloadManagerScreen.tsx +++ b/src/containers/download-manager/DownloadManagerScreen.tsx | |||
@@ -1,15 +1,12 @@ | |||
1 | import { Component, type ReactElement } from 'react'; | ||
2 | import DownloadManager from '../../components/downloadManager/DownloadManagerDashboard'; | 1 | import DownloadManager from '../../components/downloadManager/DownloadManagerDashboard'; |
3 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 2 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
4 | 3 | ||
5 | class DownloadManagerScreen extends Component { | 4 | const DownloadManagerScreen = ({ ...props }) => { |
6 | render(): ReactElement { | 5 | return ( |
7 | return ( | 6 | <ErrorBoundary> |
8 | <ErrorBoundary> | 7 | <DownloadManager {...props} /> |
9 | <DownloadManager {...this.props} /> | 8 | </ErrorBoundary> |
10 | </ErrorBoundary> | 9 | ); |
11 | ); | 10 | }; |
12 | } | ||
13 | } | ||
14 | 11 | ||
15 | export default DownloadManagerScreen; | 12 | export default DownloadManagerScreen; |