aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/settings/SupportScreen.tsx
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-04-18 08:18:36 -0600
committerLibravatar GitHub <noreply@github.com>2024-04-18 08:18:36 -0600
commitc49723056acec489765acb54bae3889ac07f25af (patch)
tree58bea705d61a728b060e615ce514b8d4a7936c9e /src/containers/settings/SupportScreen.tsx
parentfeat: hide all services workspace (#1713) (diff)
downloadferdium-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/settings/SupportScreen.tsx')
-rw-r--r--src/containers/settings/SupportScreen.tsx18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/containers/settings/SupportScreen.tsx b/src/containers/settings/SupportScreen.tsx
index 4c50869bb..3fdb0b4df 100644
--- a/src/containers/settings/SupportScreen.tsx
+++ b/src/containers/settings/SupportScreen.tsx
@@ -1,16 +1,12 @@
1import { Component, type ReactElement } from 'react';
2
3import SupportFerdium from '../../components/settings/supportFerdium/SupportFerdiumDashboard'; 1import SupportFerdium from '../../components/settings/supportFerdium/SupportFerdiumDashboard';
4import ErrorBoundary from '../../components/util/ErrorBoundary'; 2import ErrorBoundary from '../../components/util/ErrorBoundary';
5 3
6class SupportScreen extends Component { 4const SupportScreen = () => {
7 render(): ReactElement { 5 return (
8 return ( 6 <ErrorBoundary>
9 <ErrorBoundary> 7 <SupportFerdium />
10 <SupportFerdium /> 8 </ErrorBoundary>
11 </ErrorBoundary> 9 );
12 ); 10};
13 }
14}
15 11
16export default SupportScreen; 12export default SupportScreen;