File tree Expand file tree Collapse file tree 3 files changed +82
-68
lines changed
Expand file tree Collapse file tree 3 files changed +82
-68
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' ;
54
65export default function Layout ( { children } : { children : ReactNode } ) {
76 return (
8- < RootProvider >
9- < DocsLayout tree = { source . pageTree } nav = { { title : 'Object UI' } } >
10- { children }
11- </ DocsLayout >
12- </ RootProvider >
7+ < DocsLayout tree = { source . pageTree } nav = { { title : 'Object UI' } } >
8+ { children }
9+ </ DocsLayout >
1310 ) ;
1411}
Original file line number Diff line number Diff line change 11import './global.css' ;
2+ import { RootProvider } from 'fumadocs-ui/provider' ;
23import type { ReactNode } from 'react' ;
34
45export default function Layout ( { children } : { children : ReactNode } ) {
56 return (
67 < html lang = "en" suppressHydrationWarning >
7- < body > { children } </ body >
8+ < body >
9+ < RootProvider > { children } </ RootProvider >
10+ </ body >
811 </ html >
912 ) ;
1013}
You can’t perform that action at this time.
0 commit comments