Merged in fix/update-my-pages-sas-url (pull request #1533)
Update My Pages SAS url * Update My Pages SAS url Approved-by: Linus Flood
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
import { scandicXSAS } from "@/constants/routes/myPages"
|
import { partnerSas } from "@/constants/routes/myPages"
|
||||||
|
|
||||||
import ErrorCircleFilledIcon from "@/components/Icons/ErrorCircleFilled"
|
import ErrorCircleFilledIcon from "@/components/Icons/ErrorCircleFilled"
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
@@ -29,7 +29,7 @@ export function AlreadyLinkedError() {
|
|||||||
})}
|
})}
|
||||||
</Body>
|
</Body>
|
||||||
<Button theme="base" asChild>
|
<Button theme="base" asChild>
|
||||||
<Link href={scandicXSAS[lang]}>
|
<Link href={partnerSas[lang]}>
|
||||||
{intl.formatMessage({ id: "View your account" })}
|
{intl.formatMessage({ id: "View your account" })}
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
|
|
||||||
import { scandicXSAS } from "@/constants/routes/myPages"
|
import { partnerSas } from "@/constants/routes/myPages"
|
||||||
|
|
||||||
import CheckCircle from "@/components/Icons/CheckCircle"
|
import CheckCircle from "@/components/Icons/CheckCircle"
|
||||||
import { Redirect } from "@/components/Redirect"
|
import { Redirect } from "@/components/Redirect"
|
||||||
@@ -19,7 +19,7 @@ export default async function SASxScandicLinkPage({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<SASModal>
|
<SASModal>
|
||||||
<Redirect url={scandicXSAS[params.lang]} timeout={3000} />
|
<Redirect url={partnerSas[params.lang]} timeout={3000} />
|
||||||
<CheckCircle height={64} width={64} color="uiSemanticSuccess" />
|
<CheckCircle height={64} width={64} color="uiSemanticSuccess" />
|
||||||
<Title as="h2" level="h1" textAlign="center">
|
<Title as="h2" level="h1" textAlign="center">
|
||||||
{intl.formatMessage({ id: "Your accounts are connected" })}
|
{intl.formatMessage({ id: "Your accounts are connected" })}
|
||||||
|
|||||||
@@ -89,11 +89,11 @@ export const stays = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @type {import('@/types/routes').LangRoute} */
|
/** @type {import('@/types/routes').LangRoute} */
|
||||||
export const scandicXSAS = {
|
export const partnerSas = {
|
||||||
da: `${myPages.da}/scandic-x-sas`,
|
da: `${myPages.da}/sas-eurobonus`,
|
||||||
de: `${myPages.de}/scandic-x-sas`,
|
de: `${myPages.de}/sas-eurobonus`,
|
||||||
en: `${myPages.en}/scandic-x-sas`,
|
en: `${myPages.en}/sas-eurobonus`,
|
||||||
fi: `${myPages.fi}/scandic-x-sas`,
|
fi: `${myPages.fi}/sas-eurobonus`,
|
||||||
no: `${myPages.no}/scandic-x-sas`,
|
no: `${myPages.no}/sas-eurobonus`,
|
||||||
sv: `${myPages.sv}/scandic-x-sas`,
|
sv: `${myPages.sv}/sas-eurobonus`,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export const getPrimaryLinks = cache(
|
|||||||
menuItems.push({
|
menuItems.push({
|
||||||
type: "link",
|
type: "link",
|
||||||
text: intl.formatMessage({ id: "Scandic ♥ SAS" }),
|
text: intl.formatMessage({ id: "Scandic ♥ SAS" }),
|
||||||
href: routes.scandicXSAS[lang],
|
href: routes.partnerSas[lang],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user