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
parent 9a50bc0ca4
commit a215afcd18

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