From a215afcd189cfe231461eceb2e803093c4c3cf9a Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Fri, 13 Nov 2020 14:52:48 -0330 Subject: [PATCH] Fix broken LoadingScreen PropType declaration (#9877) `PropTypes.oneOf` was used accidentally instead of `PropTypes.oneOfType`. `oneOf` expects literal values, not types. --- ui/app/components/ui/loading-screen/loading-screen.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/components/ui/loading-screen/loading-screen.component.js b/ui/app/components/ui/loading-screen/loading-screen.component.js index c3b590a14..279d54c12 100644 --- a/ui/app/components/ui/loading-screen/loading-screen.component.js +++ b/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, }