mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix broken LoadingScreen PropType declaration (#9877)
`PropTypes.oneOf` was used accidentally instead of `PropTypes.oneOfType`. `oneOf` expects literal values, not types.
This commit is contained in:
parent
9a50bc0ca4
commit
a215afcd18
@ -9,7 +9,7 @@ class LoadingScreen extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
loadingMessage: PropTypes.oneOf([PropTypes.string, PropTypes.element]),
|
loadingMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
||||||
showLoadingSpinner: PropTypes.bool,
|
showLoadingSpinner: PropTypes.bool,
|
||||||
header: PropTypes.element,
|
header: PropTypes.element,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user