Skip to content

Commit

Permalink
Update spelling of prop in FileUploader readme.md
Browse files Browse the repository at this point in the history
uploadBtnText -> uploadButtonText
  • Loading branch information
JohnC-80 authored Nov 22, 2024
1 parent 780f431 commit f8817a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/FileUploader/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Component is built on top of [ReactDropzone](https://react-dropzone.netlify.com)
```javascript
<FileUploader
title="Drop to start import"
uploadBtnText="or choose files"
uploadButtonText="or choose files"
isDropZoneActive={isDropZoneActive}
onDrop={onDrop}
/>
Expand Down Expand Up @@ -52,7 +52,7 @@ onDrop = (acceptedFiles, rejectedFiles) => {
```javascript
<FileUploader
title={titleText}
uploadBtnText={uploadBtnText}
uploadButtonText={uploadButtonText}
isDropZoneActive={isDropZoneActive}
onDrop={onDrop}
>
Expand All @@ -67,7 +67,7 @@ Here `<FormattedMessage id={id} />` will be rendered below the title and upload
```javascript
<FileUploader
title={titleText}
uploadBtnText={uploadBtnText}
uploadButtonText={uploadButtonText}
isDropZoneActive={isDropZoneActive}
onDrop={onDrop}
>
Expand Down Expand Up @@ -97,7 +97,7 @@ When using a function as `children` this function accepts `openFileUploadDialogW
| Prop | Type | Default | Required | Description |
|------------------|------------------------|---------|----------|----------------------------------------------|
| title | node | | Yes | Title of the component |
| uploadBtnText | node | | Yes | Upload files button text |
| uploadButtonText | node | | Yes | Upload files button text |
| isDropZoneActive | bool | | Yes | Value specifying whether dropzone is active |
| children | node | node[] | func | | No | |

Expand Down

0 comments on commit f8817a7

Please sign in to comment.