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

Something wrong in documenation (statusTextOverride)?! #197

@turboteddy

Description

@turboteddy

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions