aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-11-12 03:59:35 +0100
committerLibravatar GitHub <noreply@github.com>2021-11-12 08:29:35 +0530
commit53937fd58023ef800bd8ca1cd2b6d2d7bc891834 (patch)
treeea70778761addfaba1732dcb515dabd9f37f09ea /src/components/ui
parentUse forked version of 'node-mac-permissions' till the PR gets merged (#2216) (diff)
downloadferdium-app-53937fd58023ef800bd8ca1cd2b6d2d7bc891834.tar.gz
ferdium-app-53937fd58023ef800bd8ca1cd2b6d2d7bc891834.tar.zst
ferdium-app-53937fd58023ef800bd8ca1cd2b6d2d7bc891834.zip
chore: update eslint deps to latest (#2213)
- update eslint deps to latest - disable new react/function-component-definition rule - fix/disable newly reported issues
Diffstat (limited to 'src/components/ui')
-rw-r--r--src/components/ui/Button.js2
-rw-r--r--src/components/ui/FAB.tsx2
-rw-r--r--src/components/ui/ImageUpload.tsx7
-rw-r--r--src/components/ui/Tabs/TabItem.tsx4
4 files changed, 4 insertions, 11 deletions
diff --git a/src/components/ui/Button.js b/src/components/ui/Button.js
index 67c801d98..d90a8d62d 100644
--- a/src/components/ui/Button.js
+++ b/src/components/ui/Button.js
@@ -35,8 +35,6 @@ class Button extends Component {
35 htmlForm: '', 35 htmlForm: '',
36 }; 36 };
37 37
38 element = null;
39
40 render() { 38 render() {
41 const { 39 const {
42 label, 40 label,
diff --git a/src/components/ui/FAB.tsx b/src/components/ui/FAB.tsx
index 583c9d556..0d871e948 100644
--- a/src/components/ui/FAB.tsx
+++ b/src/components/ui/FAB.tsx
@@ -23,8 +23,6 @@ class Button extends Component<Props> {
23 htmlForm: '', 23 htmlForm: '',
24 }; 24 };
25 25
26 element = null;
27
28 render() { 26 render() {
29 const { className, disabled, onClick, type, children, htmlForm } = 27 const { className, disabled, onClick, type, children, htmlForm } =
30 this.props; 28 this.props;
diff --git a/src/components/ui/ImageUpload.tsx b/src/components/ui/ImageUpload.tsx
index 118e6b206..52c097ef0 100644
--- a/src/components/ui/ImageUpload.tsx
+++ b/src/components/ui/ImageUpload.tsx
@@ -2,7 +2,7 @@ import { Component } from 'react';
2import { observer } from 'mobx-react'; 2import { observer } from 'mobx-react';
3import { Field } from 'mobx-react-form'; 3import { Field } from 'mobx-react-form';
4import classnames from 'classnames'; 4import classnames from 'classnames';
5import Dropzone, { DropzoneRef } from 'react-dropzone'; 5import Dropzone from 'react-dropzone';
6import { mdiDelete, mdiFileImage } from '@mdi/js'; 6import { mdiDelete, mdiFileImage } from '@mdi/js';
7import { isWindows } from '../../environment'; 7import { isWindows } from '../../environment';
8import { Icon } from './icon'; 8import { Icon } from './icon';
@@ -25,8 +25,6 @@ class ImageUpload extends Component<Props> {
25 path: null, 25 path: null,
26 }; 26 };
27 27
28 dropzoneRef: DropzoneRef | null = null;
29
30 onDrop(acceptedFiles) { 28 onDrop(acceptedFiles) {
31 const { field } = this.props; 29 const { field } = this.props;
32 30
@@ -85,9 +83,6 @@ class ImageUpload extends Component<Props> {
85 </> 83 </>
86 ) : ( 84 ) : (
87 <Dropzone 85 <Dropzone
88 ref={node => {
89 this.dropzoneRef = node;
90 }}
91 onDrop={this.onDrop.bind(this)} 86 onDrop={this.onDrop.bind(this)}
92 multiple={multiple} 87 multiple={multiple}
93 accept="image/jpeg, image/png, image/svg+xml" 88 accept="image/jpeg, image/png, image/svg+xml"
diff --git a/src/components/ui/Tabs/TabItem.tsx b/src/components/ui/Tabs/TabItem.tsx
index 9fcc3c41e..81ea0ea2b 100644
--- a/src/components/ui/Tabs/TabItem.tsx
+++ b/src/components/ui/Tabs/TabItem.tsx
@@ -1 +1,3 @@
1export const TabItem = ({ children }) => <>{children}</>; 1export const TabItem = ({ children }) => {
2 children;
3};