From efd548b3ec49bb375e61386df2e952875b79465f Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 4 Dec 2019 14:12:01 +1100 Subject: [PATCH 1/2] Add object prop type definition to DropdownAlert --- DropdownAlert.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DropdownAlert.js b/DropdownAlert.js index af3b005c..d325007d 100644 --- a/DropdownAlert.js +++ b/DropdownAlert.js @@ -18,11 +18,11 @@ import CancelButton from './CancelButton'; export default class DropdownAlert extends Component { static propTypes = { imageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - infoImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - warnImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - errorImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - successImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - cancelBtnImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + infoImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]), + warnImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object ]), + errorImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]), + successImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]), + cancelBtnImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]), infoColor: PropTypes.string, warnColor: PropTypes.string, errorColor: PropTypes.string, From d7da14079b3fa3bd7e5e4c96f398a61660d008e1 Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 4 Dec 2019 14:22:46 +1100 Subject: [PATCH 2/2] Remove trailing whitespace --- DropdownAlert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DropdownAlert.js b/DropdownAlert.js index d325007d..c09be8f3 100644 --- a/DropdownAlert.js +++ b/DropdownAlert.js @@ -19,7 +19,7 @@ export default class DropdownAlert extends Component { static propTypes = { imageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), infoImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]), - warnImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object ]), + warnImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]), errorImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]), successImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]), cancelBtnImageSrc: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]),