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 committed by GitHub
parent beb6047384
commit a75949e62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/components/ui/loading-screen/loading-screen.component.js

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