Skip to content

Commit

Permalink
fix(InlineLoading): fix prop type (#3933)
Browse files Browse the repository at this point in the history
Fixes #3932.
  • Loading branch information
asudoh authored Sep 9, 2019
1 parent fc22773 commit 5ebdd2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ storiesOf('InlineLoading', module)
<InlineLoading
style={{ marginLeft: '1rem' }}
description={description}
success={success}
status={success ? 'finished' : 'active'}
aria-live={ariaLive}
/>
) : (
Expand Down
3 changes: 1 addition & 2 deletions packages/react/src/components/InlineLoading/InlineLoading.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ InlineLoading.propTypes = {
/**
* Specify the loading status
*/
status: PropTypes.oneOf('inactive', 'active', 'finished', 'error'),
status: PropTypes.oneOf(['inactive', 'active', 'finished', 'error']),

/**
* Specify the description for the inline loading text
Expand All @@ -113,6 +113,5 @@ InlineLoading.propTypes = {
successDelay: PropTypes.number,
};
InlineLoading.defaultProps = {
success: false,
successDelay: 1500,
};

0 comments on commit 5ebdd2d

Please sign in to comment.