From 46157cb47694ba331fcdfdeb215c7a5064aeddf0 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Thu, 27 Feb 2020 10:31:59 -0400 Subject: [PATCH] Remove redundant PropTypes (#8126) Specifying a PropType of either type `node` or type `arrayOf(PropTypes.node)` is redundant, because an array of nodes is itself a node. --- ui/app/components/app/modals/fade-modal.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/app/components/app/modals/fade-modal.js b/ui/app/components/app/modals/fade-modal.js index d4cad7615..873861e27 100644 --- a/ui/app/components/app/modals/fade-modal.js +++ b/ui/app/components/app/modals/fade-modal.js @@ -129,10 +129,7 @@ class FadeModal extends Component { modalStyle: PropTypes.object, onShow: PropTypes.func, onHide: PropTypes.func, - children: PropTypes.oneOfType([ - PropTypes.arrayOf(PropTypes.node), - PropTypes.node, - ]), + children: PropTypes.node, } static defaultProps = {