Skip to content

Commit

Permalink
[docs] Fix table.js containing TS code (#71677)
Browse files Browse the repository at this point in the history
Closes #71675.

Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
  • Loading branch information
cantemizyurek and ztanner authored Oct 23, 2024
1 parent e1632cc commit 465d1bb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,8 @@ export async function Table({
```
```jsx filename="app/table.js" switcher
export async function Table({ searchParams }: {
searchParams: Promise<{ sort: string }>
}) {
const sort = (await searchParams).sort === 'true';
export async function Table({ searchParams }) {
const sort = (await searchParams).sort === 'true'
return '...'
}
```

0 comments on commit 465d1bb

Please sign in to comment.