Fix broken LoadingScreen PropType declaration (#9877)

`PropTypes.oneOf` was used accidentally instead of
`PropTypes.oneOfType`. `oneOf` expects literal values, not types.
feature/default_network_editable
Mark Stacey 4 years ago
parent 9a50bc0ca4
commit a215afcd18
  1. 2
      ui/app/components/ui/loading-screen/loading-screen.component.js

@ -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…
Cancel
Save