Skip to content

Commit 4d047b2

Browse files
authored
fix: add the missing comma in the document example (#83932)
### What? This PR fixes a missing comma in the function parameter in `03-api-reference/03-file-conventions/layout.mdx`. The comma between `children` and `params` parameters was missing in the documentation example, showing incorrect syntax. ### Why? The missing comma in the documentation example shows invalid JavaScript/TypeScript syntax. ### How? - Added missing comma after `children` parameter . **Before:** ```tsx filename="app/dashboard/[team]/layout.tsx" switcher export default async function Layout({ children params, }: { ``` **After:** ```tsx filename="app/dashboard/[team]/layout.tsx" switcher export default async function Layout({ children, params, }: { children: React.ReactNode ```
1 parent 3513e7d commit 4d047b2

File tree

1 file changed

+1
-1
lines changed
  • docs/01-app/03-api-reference/03-file-conventions

1 file changed

+1
-1
lines changed

docs/01-app/03-api-reference/03-file-conventions/layout.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ A promise that resolves to an object containing the [dynamic route parameters](/
6161

6262
```tsx filename="app/dashboard/[team]/layout.tsx" switcher
6363
export default async function Layout({
64-
children
64+
children,
6565
params,
6666
}: {
6767
children: React.ReactNode

0 commit comments

Comments
 (0)