react-fine-uploader
react-fine-uploader copied to clipboard
Something wrong in documenation (`statusTextOverride`)?!
See https://github.com/FineUploader/react-fine-uploader#status- , where it says
const statusTextOverride = {
upload_successful: 'Success!'
}
render() {
return (
<Gallery status-text={ { text: statusTextOverride } } uploader={ uploader } />
)
}
I believe it should be
status-text={ { text: statusTextOverride } }
Also, it would be nice if one could easily change the text for dropzone. Had to look at the source code to come up with this...
const dropzoneChildren = <span className="react-fine-uploader-gallery-dropzone-content">
Skyv filer hit
</span>;
const fileInputChildren = <div className="velgFilInnhold">
<i className="fa fa-cloud-upload"/> {'\u00A0'} Velg fil(er)
</div>;
//....
<Gallery status-text={statusTextOverride }
fileInput-children={fileInputChildren}
children={dropzoneChildren}
uploader={uploader}
/>
Keep up the good work!
PR welcome - thanks