Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions packages/playground-nextjs/app/example/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { EditorExample } from '@/components/biz/editor-example'

export default function Page({
export default async function Page({
searchParams
}: {
searchParams?: {
searchParams?: Promise<{
ex?: string
theme?: string
}
}>
}) {
const params = await searchParams
return (
<main className="h-screen">
<EditorExample example={searchParams?.ex} theme={searchParams?.theme} />
<EditorExample example={params?.ex} theme={params?.theme} />
</main>
)
}
11 changes: 6 additions & 5 deletions packages/playground-nextjs/app/examples/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ import { cn } from '@/lib/utils'
import { ExampleSelect } from './example-select'
import { EditorThemeSelect } from './editor-theme-select'

export default function Page({
export default async function Page({
searchParams
}: {
searchParams?: {
searchParams?: Promise<{
ex?: string
theme?: string
}
}>
}) {
const ex = searchParams?.ex ?? 'all'
const editorTheme = searchParams?.theme ?? 'oneDark'
const params = await searchParams
const ex = params?.ex ?? 'all'
const editorTheme = params?.theme ?? 'oneDark'

const showOutputBox = ex === 'events' || ex === 'all'

Expand Down
4 changes: 2 additions & 2 deletions packages/playground-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"clsx": "^2.1.1",
"dayjs": "^1.11.11",
"lucide-react": "^0.408.0",
"next": "14.2.25",
"next": "15.5.24",
"next-themes": "^0.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -50,7 +50,7 @@
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.25",
"eslint-config-next": "15.5.24",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.4",
"typescript": "^5.2.2"
Expand Down
Loading
Loading