1
0
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:
Mark Stacey 2020-11-13 14:52:48 -03:30 committed by GitHub
parent beb6047384
commit a75949e62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}