File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11import { source } from '@/lib/source' ;
22import type { ReactNode } from 'react' ;
33import { DocsLayout } from 'fumadocs-ui/layouts/docs' ;
4+ import { RootProvider } from 'fumadocs-ui/provider' ;
45
56export default function Layout ( { children } : { children : ReactNode } ) {
67 return (
7- < DocsLayout tree = { source . pageTree } nav = { { title : 'Object UI' } } >
8- { children }
9- </ DocsLayout >
8+ < RootProvider >
9+ < DocsLayout tree = { source . pageTree } nav = { { title : 'Object UI' } } >
10+ { children }
11+ </ DocsLayout >
12+ </ RootProvider >
1013 ) ;
1114}
Original file line number Diff line number Diff line change 11import './global.css' ;
2- import { RootProvider } from 'fumadocs-ui/provider' ;
32import type { ReactNode } from 'react' ;
43
54export default function Layout ( { children } : { children : ReactNode } ) {
65 return (
76 < html lang = "en" suppressHydrationWarning >
8- < body >
9- < RootProvider > { children } </ RootProvider >
10- </ body >
7+ < body > { children } </ body >
118 </ html >
129 ) ;
1310}
You can’t perform that action at this time.
0 commit comments