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