File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
apps/developer-hub/src/app/(docs)/[section] Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,14 @@ import type { ReactNode } from "react";
55
66import { docsOptions } from "../../../config/layout.config" ;
77
8- export default function Layout ( {
8+ export default async function Layout ( {
99 children,
1010 params,
1111} : {
1212 children : ReactNode ;
13- params : { section : string } ;
13+ params : Promise < { section : string } > ;
1414} ) {
15- const { section } = params ;
16- const options = { ...docsOptions } ;
15+ const { section } = await params ;
1716
1817 return (
1918 < >
@@ -37,7 +36,7 @@ export default function Layout({
3736 </ span >
3837 </ Banner >
3938 ) }
40- < DocsLayout { ...options } > { children } </ DocsLayout >
39+ < DocsLayout { ...docsOptions } > { children } </ DocsLayout >
4140 </ >
4241 ) ;
4342}
You can’t perform that action at this time.
0 commit comments