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
beb6047384
commit
a75949e62c
@ -9,7 +9,7 @@ class LoadingScreen extends Component {
|
||||
}
|
||||
|
||||
static propTypes = {
|
||||
loadingMessage: PropTypes.oneOf([PropTypes.string, PropTypes.element]),
|
||||
loadingMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
||||
showLoadingSpinner: PropTypes.bool,
|
||||
header: PropTypes.element,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user