fix(ui) - lazyload loader

This commit is contained in:
Shekar Siri 2022-06-27 20:03:02 +02:00
parent a2588df4cc
commit 110f215e7d

View file

@ -169,9 +169,9 @@ class Router extends React.Component {
<Loader loading={ loading } className="flex-1" >
<Notification />
{!hideHeader && <Header key="header"/>}
<Suspense fallback={<Loader loading={true} className="flex-1" />}>
<ModalProvider>
{!hideHeader && <Header key="header"/>}
<Switch key="content" >
<Route path={ CLIENT_PATH } component={ Client } />
<Route path={ withSiteId(ONBOARDING_PATH, siteIdList)} component={ Onboarding } />