File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
apps/beeai-ui/src/components Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: Apache-2.0
44 */
55
6+ 'use client' ;
7+
68import clsx from 'clsx' ;
79import type { PropsWithChildren } from 'react' ;
810import { mergeRefs } from 'react-merge-refs' ;
Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: Apache-2.0
44 */
55
6- import type { PropsWithChildren } from 'react' ;
6+ import { type PropsWithChildren , Suspense } from 'react' ;
77
88import { AppHeader } from '#components/AppHeader/AppHeader.tsx' ;
99import { AgentDetailPanel } from '#modules/agents/components/AgentDetailPanel.tsx' ;
@@ -13,12 +13,16 @@ import classes from './AppLayout.module.scss';
1313export function AppLayout ( { children } : PropsWithChildren ) {
1414 return (
1515 < div className = { classes . root } >
16- < AppHeader className = { classes . header } />
16+ < Suspense >
17+ < AppHeader className = { classes . header } />
18+ </ Suspense >
1719
1820 < main className = { classes . main } data-route-transition >
1921 { children }
2022
21- < AgentDetailPanel />
23+ < Suspense >
24+ < AgentDetailPanel />
25+ </ Suspense >
2226 </ main >
2327 </ div >
2428 ) ;
You can’t perform that action at this time.
0 commit comments