u
This commit is contained in:
@@ -12,7 +12,10 @@ import HelpBadge from './HelpBadge';
|
||||
import { NAV_ITEMS, SUB_NAV, resolveActiveNav, resolveActiveSub } from '../nav';
|
||||
import { artikelQueryPath, buildSearchUrl } from './article/artikelQuery';
|
||||
import { defaultCategoryPath } from './category/categoryRoute';
|
||||
import { navigationAutomat } from '../automats';
|
||||
import companyAutomat from '../automats/companyAutomat';
|
||||
import navigationAutomat from '../automats/navigationAutomat';
|
||||
import { initPwa } from '../automats/pwaAutomat';
|
||||
import PwaUpdateDialog from './PwaUpdateDialog';
|
||||
import {
|
||||
NAV_ITEM_ACTIVE_ACCENT,
|
||||
NAV_SUB_ACTIVE,
|
||||
@@ -22,9 +25,16 @@ import {
|
||||
import { ChatFab, ChatDrawer } from './chat';
|
||||
import { PinnedAppletFabs, PinnedAppletDialog } from './applet';
|
||||
|
||||
// Ensure companyAutomat is retained as part of the 1st-level navigation shell
|
||||
void companyAutomat;
|
||||
initPwa();
|
||||
|
||||
const BreakpointOverlay = 0 && import.meta.env.DEV
|
||||
? lazy(() => import('./BreakpointOverlay'))
|
||||
: null;
|
||||
const ChunkCacheMonitor = import.meta.env.DEV
|
||||
? lazy(() => import('../devtools/ChunkCacheMonitor'))
|
||||
: null;
|
||||
|
||||
|
||||
const SIDEBAR_WIDTH = 144;
|
||||
@@ -403,13 +413,21 @@ export default function AppShell() {
|
||||
minWidth: 0,
|
||||
})}
|
||||
>
|
||||
<Outlet />
|
||||
<Suspense fallback={null}>
|
||||
<Outlet />
|
||||
</Suspense>
|
||||
</Box>
|
||||
</Box>
|
||||
<ChatFab />
|
||||
<ChatDrawer />
|
||||
<PinnedAppletFabs pathname={pathname} />
|
||||
<PinnedAppletDialog />
|
||||
<PwaUpdateDialog />
|
||||
{ChunkCacheMonitor ? (
|
||||
<Suspense fallback={null}>
|
||||
<ChunkCacheMonitor />
|
||||
</Suspense>
|
||||
) : null}
|
||||
{BreakpointOverlay && (
|
||||
<Suspense fallback={null}>
|
||||
<BreakpointOverlay />
|
||||
|
||||
Reference in New Issue
Block a user