Unverified Commit 4d047b28 authored by Felix Shih's avatar Felix Shih Committed by GitHub

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
```
parent 3513e7d7
......@@ -61,7 +61,7 @@ A promise that resolves to an object containing the [dynamic route parameters](/
```tsx filename="app/dashboard/[team]/layout.tsx" switcher
export default async function Layout({
children
children,
params,
}: {
children: React.ReactNode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment