Skip to content

Commit

Permalink
Fix table.js containing TS code
Browse files Browse the repository at this point in the history
  • Loading branch information
cantemizyurek authored Oct 23, 2024
1 parent 96d6a96 commit 1f49eec
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,7 @@ export async function Table({
```
```jsx filename="app/table.js" switcher
export async function Table({ searchParams }: {
searchParams: Promise<{ sort: string }>
}) {
export async function Table({ searchParams }) {
const sort = (await searchParams).sort === 'true';
return '...'
}
Expand Down

0 comments on commit 1f49eec

Please sign in to comment.