Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Something wrong in documenation (statusTextOverride)?! #197

Open
turboteddy opened this issue Jun 25, 2018 · 1 comment
Open

Something wrong in documenation (statusTextOverride)?! #197

turboteddy opened this issue Jun 25, 2018 · 1 comment

Comments

@turboteddy
Copy link

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!

@rnicholus
Copy link
Member

PR welcome - thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants