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 11import React , {
22 type FC ,
33 type PropsWithChildren ,
4+ Suspense ,
45 useEffect ,
56 useMemo ,
67} from 'react' ;
@@ -15,6 +16,7 @@ import { useClusters } from 'lib/hooks/api/clusters';
1516import { ResourceType } from 'generated-sources' ;
1617import { useGetUserInfo } from 'lib/hooks/api/roles' ;
1718import { useScreenSize } from 'lib/hooks/useScreenSize' ;
19+ import PageLoader from 'components/common/PageLoader/PageLoader' ;
1820
1921const PageContainer : FC < PropsWithChildren > = ( { children } ) => {
2022 const { isLarge } = useScreenSize ( ) ;
@@ -62,7 +64,7 @@ const PageContainer: FC<PropsWithChildren> = ({ children }) => {
6264 aria-hidden = "true"
6365 aria-label = "Overlay"
6466 />
65- { children }
67+ < Suspense fallback = { < PageLoader fullSize /> } > { children } </ Suspense >
6668 </ S . Container >
6769 </ >
6870 ) ;
You can’t perform that action at this time.
0 commit comments