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:
@@ -8,9 +8,9 @@ import { getProfileSafely } from "@/lib/trpc/memoizedRequests"
|
||||
import { SASModal } from "../components/SASModal"
|
||||
import { LinkAccountForm } from "./LinkAccountForm"
|
||||
|
||||
import type { LangParams, PageArgs } from "@/types/params"
|
||||
|
||||
export default async function SASxScandicLinkPage(props: PageArgs<LangParams>) {
|
||||
export default async function SASxScandicLinkPage(
|
||||
props: PageProps<"/[lang]/sas-x-scandic/link">
|
||||
) {
|
||||
const params = await props.params
|
||||
const profile = await getProfileSafely()
|
||||
|
||||
|
||||
@@ -9,15 +9,18 @@ import { getIntl } from "@/i18n"
|
||||
|
||||
import { SASModal } from "../../components/SASModal"
|
||||
|
||||
import type { LangParams, PageArgs } from "@/types/params"
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
|
||||
export default async function SASxScandicLinkPage(props: PageArgs<LangParams>) {
|
||||
export default async function SASxScandicLinkPage(
|
||||
props: PageProps<"/[lang]/sas-x-scandic/link/success">
|
||||
) {
|
||||
const params = await props.params
|
||||
const lang = params.lang as Lang
|
||||
const intl = await getIntl()
|
||||
|
||||
return (
|
||||
<SASModal>
|
||||
<Redirect url={partnerSas[params.lang]} timeout={3000} />
|
||||
<Redirect url={partnerSas[lang]} timeout={3000} />
|
||||
<MaterialIcon
|
||||
icon="check_circle"
|
||||
size={64}
|
||||
|
||||
Reference in New Issue
Block a user