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:
parent
64aef5033d
commit
46157cb476
@ -129,10 +129,7 @@ class FadeModal extends Component {
|
|||||||
modalStyle: PropTypes.object,
|
modalStyle: PropTypes.object,
|
||||||
onShow: PropTypes.func,
|
onShow: PropTypes.func,
|
||||||
onHide: PropTypes.func,
|
onHide: PropTypes.func,
|
||||||
children: PropTypes.oneOfType([
|
children: PropTypes.node,
|
||||||
PropTypes.arrayOf(PropTypes.node),
|
|
||||||
PropTypes.node,
|
|
||||||
]),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
|
Loading…
Reference in New Issue
Block a user