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

Commit

Permalink
fix(status): missing canceled and deleted status
Browse files Browse the repository at this point in the history
fixes #148
  • Loading branch information
rnicholus committed Sep 28, 2017
1 parent dadb902 commit 435a40f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ The `<Status />` component renders the current status of a file in a format appr
- `id` - The Fine Uploader ID of the submitted file. (required)
- `text` - An object containing a map of status keys to display values. You may override one or more of these entries. Each entry with default values is listed below.
- `canceled` - 'Canceled'
- `deleting` - 'Deleting...'
- `paused` - 'Paused'
- `queued` - 'Queued'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-fine-uploader",
"version": "1.0.5",
"version": "1.0.6",
"license": "MIT",
"description": "React UI components for using Fine Uploader in a React-based project.",
"author": {
Expand Down
4 changes: 4 additions & 0 deletions src/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class Status extends Component {
id: PropTypes.number.isRequired,
className: PropTypes.string,
text: PropTypes.shape({
canceled: PropTypes.string,
deleted: PropTypes.string,
deleting: PropTypes.string,
paused: PropTypes.string,
queued: PropTypes.string,
Expand All @@ -22,6 +24,8 @@ class Status extends Component {
static defaultProps = {
className: '',
text: {
canceled: 'Canceled',
deleted: 'Deleted',
deleting: 'Deleting...',
paused: 'Paused',
queued: 'Queued',
Expand Down

0 comments on commit 435a40f

Please sign in to comment.