blob: 959ee85f51544e0568fe5882eefde234ff9c9184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import React, { Fragment } from 'react';
import { MaterialDropZone } from 'ba-components';
class UploadInputBtn extends React.Component {
constructor(props) {
super(props);
this.state = {
files: [],
};
}
render() {
const { files } = this.state;
return (
<Fragment>
<div>
<MaterialDropZone
files={files}
showPreviews
maxSize={5000000}
filesLimit={5}
text="Drag and drop file(s) here or click button bellow"
showButton
/>
</div>
</Fragment>
);
}
}
export default UploadInputBtn;
|