1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

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.
This commit is contained in:
Mark Stacey 2020-02-27 10:31:59 -04:00 committed by GitHub
parent 64aef5033d
commit 46157cb476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {