feat(dashboard): add customer accordion view and extension flow
All checks were successful
Staging Build / build (push) Successful in 3m1s
All checks were successful
Staging Build / build (push) Successful in 3m1s
This commit is contained in:
16
shop/app/wizard/page.tsx
Normal file
16
shop/app/wizard/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { redirect } from 'next/navigation'
|
||||
|
||||
interface PageProps {
|
||||
searchParams: Promise<{ id?: string; orderId?: string; mode?: string }>
|
||||
}
|
||||
|
||||
export default async function WizardPage({ searchParams }: PageProps) {
|
||||
const params = await searchParams
|
||||
const id = params.orderId || params.id
|
||||
const mode = params.mode
|
||||
const query = new URLSearchParams()
|
||||
if (id) query.set('orderId', id)
|
||||
if (mode) query.set('mode', mode)
|
||||
|
||||
redirect(`/order?${query.toString()}`)
|
||||
}
|
||||
Reference in New Issue
Block a user