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,
|
||||
onShow: PropTypes.func,
|
||||
onHide: PropTypes.func,
|
||||
children: PropTypes.oneOfType([
|
||||
PropTypes.arrayOf(PropTypes.node),
|
||||
PropTypes.node,
|
||||
]),
|
||||
children: PropTypes.node,
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
|
Loading…
Reference in New Issue
Block a user