From 53937fd58023ef800bd8ca1cd2b6d2d7bc891834 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Fri, 12 Nov 2021 03:59:35 +0100 Subject: chore: update eslint deps to latest (#2213) - update eslint deps to latest - disable new react/function-component-definition rule - fix/disable newly reported issues --- src/components/ui/ImageUpload.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/components/ui/ImageUpload.tsx') 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'; import { observer } from 'mobx-react'; import { Field } from 'mobx-react-form'; import classnames from 'classnames'; -import Dropzone, { DropzoneRef } from 'react-dropzone'; +import Dropzone from 'react-dropzone'; import { mdiDelete, mdiFileImage } from '@mdi/js'; import { isWindows } from '../../environment'; import { Icon } from './icon'; @@ -25,8 +25,6 @@ class ImageUpload extends Component { path: null, }; - dropzoneRef: DropzoneRef | null = null; - onDrop(acceptedFiles) { const { field } = this.props; @@ -85,9 +83,6 @@ class ImageUpload extends Component { ) : ( { - this.dropzoneRef = node; - }} onDrop={this.onDrop.bind(this)} multiple={multiple} accept="image/jpeg, image/png, image/svg+xml" -- cgit v1.2.3-70-g09d2