From c49723056acec489765acb54bae3889ac07f25af Mon Sep 17 00:00:00 2001
From: MCMXC <16797721+mcmxcdev@users.noreply.github.com>
Date: Thu, 18 Apr 2024 08:18:36 -0600
Subject: 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`
---
 .../download-manager/DownloadManagerScreen.tsx          | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

(limited to 'src/containers/download-manager/DownloadManagerScreen.tsx')

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 @@
-import { Component, type ReactElement } from 'react';
 import DownloadManager from '../../components/downloadManager/DownloadManagerDashboard';
 import ErrorBoundary from '../../components/util/ErrorBoundary';
 
-class DownloadManagerScreen extends Component {
-  render(): ReactElement {
-    return (
-      <ErrorBoundary>
-        <DownloadManager {...this.props} />
-      </ErrorBoundary>
-    );
-  }
-}
+const DownloadManagerScreen = ({ ...props }) => {
+  return (
+    <ErrorBoundary>
+      <DownloadManager {...props} />
+    </ErrorBoundary>
+  );
+};
 
 export default DownloadManagerScreen;
-- 
cgit v1.2.3-54-g00ecf

