diff --git a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/LinkAccountForm.tsx b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/LinkAccountForm.tsx index 09f738db0..d3ede0909 100644 --- a/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/LinkAccountForm.tsx +++ b/apps/scandic-web/app/[lang]/(partner)/(sas)/(protected)/sas-x-scandic/link/LinkAccountForm.tsx @@ -5,6 +5,7 @@ import { useTransition } from "react" import { FormProvider, useForm } from "react-hook-form" import { useIntl } from "react-intl" +import { sasPartnershipTermsAndConditions } from "@scandic-hotels/common/constants/routes/customerService" import { profileEdit } from "@scandic-hotels/common/constants/routes/myPages" import { Button } from "@scandic-hotels/design-system/Button" import Checkbox from "@scandic-hotels/design-system/Form/Checkbox" @@ -13,8 +14,6 @@ import Image from "@scandic-hotels/design-system/Image" import Link from "@scandic-hotels/design-system/OldDSLink" import { Typography } from "@scandic-hotels/design-system/Typography" -import { sasPartnershipTermsAndConditions } from "@/constants/webHrefs" - import styles from "./link-sas.module.css" import type { LangParams } from "@/types/params" diff --git a/apps/scandic-web/components/Sidebar/JoinLoyalty/ReadMore/index.tsx b/apps/scandic-web/components/Sidebar/JoinLoyalty/ReadMore/index.tsx index fe1d09e65..78e79e878 100644 --- a/apps/scandic-web/components/Sidebar/JoinLoyalty/ReadMore/index.tsx +++ b/apps/scandic-web/components/Sidebar/JoinLoyalty/ReadMore/index.tsx @@ -1,4 +1,4 @@ -import { scandicFriends } from "@scandic-hotels/common/constants/routes/myPages" +import { scandicFriends } from "@scandic-hotels/common/constants/routes/customerService" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import Link from "@scandic-hotels/design-system/OldDSLink" import { Typography } from "@scandic-hotels/design-system/Typography" diff --git a/apps/scandic-web/constants/webHrefs.ts b/apps/scandic-web/constants/webHrefs.ts index 59e34c44a..179998658 100644 --- a/apps/scandic-web/constants/webHrefs.ts +++ b/apps/scandic-web/constants/webHrefs.ts @@ -2,15 +2,6 @@ import { Lang } from "@scandic-hotels/common/constants/language" import type { LangRoute } from "@scandic-hotels/common/constants/routes/langRoute" -export const sasPartnershipTermsAndConditions: LangRoute = { - da: `/${Lang.da}/kundeservice/politikker/scandic-friends-betingelser/sas-eurobonus`, - de: `/${Lang.de}/kundenbetreuung/richtlinien/scandic-friends-allgemeine-geschaeftsbedingungen/sas-eurobonus`, - en: `/${Lang.en}/customer-service/policies/scandic-friends/sas-eurobonus`, - fi: `/${Lang.fi}/asiakaspalvelu/ehdot/scandic-friends/sas-eurobonus`, - no: `/${Lang.no}/kundeservice/betingelser/scandic-friends-betingelser/sas-eurobonus`, - sv: `/${Lang.sv}/kundservice/villkor/scandic-friends/sas-eurobonus`, -} - export const faq: LangRoute = { da: `/${Lang.da}/scandic-friends/hjalp-og-service/faq`, de: `/${Lang.de}/scandic-friends/hilfe-und-service/faq`, diff --git a/packages/common/constants/routes/customerService.ts b/packages/common/constants/routes/customerService.ts index 508f1235d..c10ab7cec 100644 --- a/packages/common/constants/routes/customerService.ts +++ b/packages/common/constants/routes/customerService.ts @@ -64,3 +64,12 @@ export const bookingTerms = { no: `${policies[Lang.no]}/reservasjonsbetingelser`, sv: `${policies[Lang.sv]}/bokningsvillkor`, } as const satisfies LangRoute + +export const sasPartnershipTermsAndConditions = { + da: `${scandicFriends[Lang.da]}/sas-eurobonus`, + de: `${scandicFriends[Lang.de]}/sas-eurobonus`, + en: `${scandicFriends[Lang.en]}/sas-eurobonus`, + fi: `${scandicFriends[Lang.fi]}/sas-eurobonus`, + no: `${scandicFriends[Lang.no]}/sas-eurobonus`, + sv: `${scandicFriends[Lang.sv]}/sas-eurobonus`, +} as const satisfies LangRoute