File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
frontend/src/components/PageContainer Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
import React , {
2
2
type FC ,
3
3
type PropsWithChildren ,
4
+ Suspense ,
4
5
useEffect ,
5
6
useMemo ,
6
7
} from 'react' ;
@@ -15,6 +16,7 @@ import { useClusters } from 'lib/hooks/api/clusters';
15
16
import { ResourceType } from 'generated-sources' ;
16
17
import { useGetUserInfo } from 'lib/hooks/api/roles' ;
17
18
import { useScreenSize } from 'lib/hooks/useScreenSize' ;
19
+ import PageLoader from 'components/common/PageLoader/PageLoader' ;
18
20
19
21
const PageContainer : FC < PropsWithChildren > = ( { children } ) => {
20
22
const { isLarge } = useScreenSize ( ) ;
@@ -62,7 +64,7 @@ const PageContainer: FC<PropsWithChildren> = ({ children }) => {
62
64
aria-hidden = "true"
63
65
aria-label = "Overlay"
64
66
/>
65
- { children }
67
+ < Suspense fallback = { < PageLoader fullSize /> } > { children } </ Suspense >
66
68
</ S . Container >
67
69
</ >
68
70
) ;
You can’t perform that action at this time.
0 commit comments