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:
@@ -3,19 +3,21 @@ import { setLang } from "@/i18n/serverContext"
|
||||
|
||||
import Tracking from "./tracking"
|
||||
|
||||
import type { LangParams, PageArgs } from "@/types/params"
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
|
||||
export default async function MyStayPage(
|
||||
props: PageArgs<LangParams, { RefId?: string }>
|
||||
props: PageProps<"/[lang]/hotelreservation/my-stay">
|
||||
) {
|
||||
const searchParams = await props.searchParams
|
||||
const params = await props.params
|
||||
setLang(params.lang)
|
||||
const refId = searchParams.RefId
|
||||
const lang = params.lang as Lang
|
||||
setLang(lang)
|
||||
|
||||
const refId = typeof searchParams.RefId === "string" ? searchParams.RefId : ""
|
||||
|
||||
return (
|
||||
<>
|
||||
<MyStay refId={refId} lang={params.lang} />
|
||||
<MyStay refId={refId} lang={lang} />
|
||||
<Tracking />
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user