react-fine-uploader icon indicating copy to clipboard operation
react-fine-uploader copied to clipboard

Something wrong in documenation (`statusTextOverride`)?!

Open turboteddy opened this issue 6 years ago • 1 comments

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!

turboteddy avatar Jun 25 '18 12:06 turboteddy

PR welcome - thanks

rnicholus avatar Jun 29 '18 02:06 rnicholus