diff options
author | 2019-11-28 04:53:50 +0700 | |
---|---|---|
committer | 2019-11-28 04:53:50 +0700 | |
commit | 63c9095ebabcd7ead1cdbd483fe6f2d1ee15399e (patch) | |
tree | 25cd494f3a407c9ecf0303597d7cd3f7f2b78fe2 /src | |
parent | Revert "Upgrade deps with major up requiring no refactor" (diff) | |
download | ferdium-app-63c9095ebabcd7ead1cdbd483fe6f2d1ee15399e.tar.gz ferdium-app-63c9095ebabcd7ead1cdbd483fe6f2d1ee15399e.tar.zst ferdium-app-63c9095ebabcd7ead1cdbd483fe6f2d1ee15399e.zip |
Revert "Upgrade react-dropzone and review usage breaking changes"
This reverts commit 39805a4ea66da43f646e9117771c89b65c544b22.
Diffstat (limited to 'src')
-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> |