diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-11-12 03:59:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 08:29:35 +0530 |
commit | 53937fd58023ef800bd8ca1cd2b6d2d7bc891834 (patch) | |
tree | ea70778761addfaba1732dcb515dabd9f37f09ea /src/components/ui/ImageUpload.tsx | |
parent | Use forked version of 'node-mac-permissions' till the PR gets merged (#2216) (diff) | |
download | ferdium-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/ImageUpload.tsx')
-rw-r--r-- | src/components/ui/ImageUpload.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
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'; | |||
2 | import { observer } from 'mobx-react'; | 2 | import { observer } from 'mobx-react'; |
3 | import { Field } from 'mobx-react-form'; | 3 | import { Field } from 'mobx-react-form'; |
4 | import classnames from 'classnames'; | 4 | import classnames from 'classnames'; |
5 | import Dropzone, { DropzoneRef } from 'react-dropzone'; | 5 | import Dropzone from 'react-dropzone'; |
6 | import { mdiDelete, mdiFileImage } from '@mdi/js'; | 6 | import { mdiDelete, mdiFileImage } from '@mdi/js'; |
7 | import { isWindows } from '../../environment'; | 7 | import { isWindows } from '../../environment'; |
8 | import { Icon } from './icon'; | 8 | import { 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" |