Merged in chore/upgrade-next (pull request #3124)
Upgrade next@15.5.6 * chore: upgrade next@15.5.6 * chore: upgrade turborepo@2.6.1 * fix typings for scandic-web * fix: set correct type for pages * cleanup * fix more route.ts typing issues * Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/upgrade-next * explicitly import the types Approved-by: Linus Flood
This commit is contained in:
@@ -4,15 +4,14 @@ import { Suspense } from "react"
|
||||
import { MyStaySkeleton } from "@/components/HotelReservation/MyStay/myStaySkeleton"
|
||||
import { Receipt } from "@/components/HotelReservation/MyStay/Receipt"
|
||||
|
||||
import type { LangParams, PageArgs } from "@/types/params"
|
||||
|
||||
export default async function ReceiptPage(
|
||||
props: PageArgs<LangParams, { RefId?: string }>
|
||||
props: PageProps<"/[lang]/hotelreservation/my-stay/receipt">
|
||||
) {
|
||||
const searchParams = await props.searchParams
|
||||
if (!searchParams.RefId) {
|
||||
if (!searchParams.RefId || typeof searchParams.RefId !== "string") {
|
||||
notFound()
|
||||
}
|
||||
|
||||
return (
|
||||
<Suspense fallback={<MyStaySkeleton />}>
|
||||
<Receipt refId={searchParams.RefId} />
|
||||
|
||||
Reference in New Issue
Block a user