From 5ebdd2d3bd496839871529f4f7762b1530d78954 Mon Sep 17 00:00:00 2001 From: Akira Sudoh Date: Tue, 10 Sep 2019 06:47:12 +0900 Subject: [PATCH] fix(InlineLoading): fix prop type (#3933) Fixes #3932. --- .../react/src/components/InlineLoading/InlineLoading-story.js | 2 +- packages/react/src/components/InlineLoading/InlineLoading.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/react/src/components/InlineLoading/InlineLoading-story.js b/packages/react/src/components/InlineLoading/InlineLoading-story.js index 0cdb9e1bc605..3debc6187595 100644 --- a/packages/react/src/components/InlineLoading/InlineLoading-story.js +++ b/packages/react/src/components/InlineLoading/InlineLoading-story.js @@ -89,7 +89,7 @@ storiesOf('InlineLoading', module) ) : ( diff --git a/packages/react/src/components/InlineLoading/InlineLoading.js b/packages/react/src/components/InlineLoading/InlineLoading.js index ec504e3dd982..fbc9a0092888 100644 --- a/packages/react/src/components/InlineLoading/InlineLoading.js +++ b/packages/react/src/components/InlineLoading/InlineLoading.js @@ -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 @@ -113,6 +113,5 @@ InlineLoading.propTypes = { successDelay: PropTypes.number, }; InlineLoading.defaultProps = { - success: false, successDelay: 1500, };