diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/ui/ImageUpload.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/components/ui/ImageUpload.js b/src/components/ui/ImageUpload.js index 636d4fae3..83a05554b 100644 --- a/src/components/ui/ImageUpload.js +++ b/src/components/ui/ImageUpload.js | |||
@@ -89,16 +89,14 @@ export default @observer class ImageUpload extends Component { | |||
89 | <Dropzone | 89 | <Dropzone |
90 | ref={(node) => { this.dropzoneRef = node; }} | 90 | ref={(node) => { this.dropzoneRef = node; }} |
91 | onDrop={this.onDrop.bind(this)} | 91 | onDrop={this.onDrop.bind(this)} |
92 | className={cssClasses} | ||
92 | multiple={multiple} | 93 | multiple={multiple} |
93 | accept="image/jpeg, image/png" | 94 | accept="image/jpeg, image/png" |
94 | > | 95 | > |
95 | {({ getRootProps, getInputProps }) => ( | 96 | <i className="mdi mdi-file-image" /> |
96 | <div {...getRootProps()} className={cssClasses}> | 97 | <p> |
97 | <i className="mdi mdi-file-image" /> | 98 | {textUpload} |
98 | <p>{textUpload}</p> | 99 | </p> |
99 | <input {...getInputProps()} /> | ||
100 | </div> | ||
101 | )} | ||
102 | </Dropzone> | 100 | </Dropzone> |
103 | )} | 101 | )} |
104 | </div> | 102 | </div> |