aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/ImageUpload.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ui/ImageUpload.tsx')
-rw-r--r--src/components/ui/ImageUpload.tsx7
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';
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"