From 3dce2d310f502386b93c5e7f0219ff91348c586f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Wed, 17 Dec 2025 09:33:08 +0000 Subject: [PATCH] Merged in refactor/SW-2826-align-urls (pull request #3359) refactor(SW-2826): align urls * refactor(SW-2826): align urls Approved-by: Anton Gunnarsson --- .../constants/bookingFlowConfig.ts | 20 +++++++++---------- .../components/Forms/Signup/index.tsx | 10 ++++++---- .../MyStay/TermsAndConditions/index.tsx | 10 ++++++---- .../Sidebar/JoinLoyalty/ReadMore/index.tsx | 4 ++-- .../constants/bookingFlowConfig.ts | 16 ++++++++------- .../routes/bookingTermsAndConditionsRoutes.ts | 12 ----------- .../constants/routes/customerService.ts | 18 +++++++++++++++++ .../routes/membershipTermsAndConditions.ts | 12 ----------- .../constants/routes/privacyPolicyRoutes.ts | 12 ----------- 9 files changed, 50 insertions(+), 64 deletions(-) delete mode 100644 packages/common/constants/routes/bookingTermsAndConditionsRoutes.ts delete mode 100644 packages/common/constants/routes/membershipTermsAndConditions.ts delete mode 100644 packages/common/constants/routes/privacyPolicyRoutes.ts diff --git a/apps/partner-sas/constants/bookingFlowConfig.ts b/apps/partner-sas/constants/bookingFlowConfig.ts index fb8f0b730..57c67a39a 100644 --- a/apps/partner-sas/constants/bookingFlowConfig.ts +++ b/apps/partner-sas/constants/bookingFlowConfig.ts @@ -1,8 +1,10 @@ -import { bookingTermsAndConditionsRoutes } from "@scandic-hotels/common/constants/routes/bookingTermsAndConditionsRoutes" -import { customerService } from "@scandic-hotels/common/constants/routes/customerService" -import { membershipTermsAndConditions } from "@scandic-hotels/common/constants/routes/membershipTermsAndConditions" +import { + bookingTerms, + customerService, + scandicFriends, + privacy, +} from "@scandic-hotels/common/constants/routes/customerService" import { myStay } from "@scandic-hotels/common/constants/routes/myStay" -import { privacyPolicyRoutes } from "@scandic-hotels/common/constants/routes/privacyPolicyRoutes" import { env } from "@/env/server" @@ -18,14 +20,10 @@ export const bookingFlowConfig: BookingFlowConfig = { variant: "partner-sas", routes: { myStay: routeToScandicWeb(myStay), - bookingTermsAndConditions: routeToScandicWeb( - bookingTermsAndConditionsRoutes - ), - membershipTermsAndConditions: routeToScandicWeb( - membershipTermsAndConditions - ), + bookingTermsAndConditions: routeToScandicWeb(bookingTerms), + membershipTermsAndConditions: routeToScandicWeb(scandicFriends), customerService: routeToScandicWeb(customerService), - privacyPolicy: routeToScandicWeb(privacyPolicyRoutes), + privacyPolicy: routeToScandicWeb(privacy), }, } diff --git a/apps/scandic-web/components/Forms/Signup/index.tsx b/apps/scandic-web/components/Forms/Signup/index.tsx index cb03bf8e8..557dd9932 100644 --- a/apps/scandic-web/components/Forms/Signup/index.tsx +++ b/apps/scandic-web/components/Forms/Signup/index.tsx @@ -6,8 +6,6 @@ import { useRouter } from "next/navigation" import { FormProvider, useForm } from "react-hook-form" import { useIntl } from "react-intl" -import { membershipTermsAndConditions } from "@scandic-hotels/common/constants/routes/membershipTermsAndConditions" -import { privacyPolicyRoutes } from "@scandic-hotels/common/constants/routes/privacyPolicyRoutes" import { logger } from "@scandic-hotels/common/logger" import { formatPhoneNumber, @@ -40,6 +38,10 @@ import { requestOpen } from "@/utils/profilingConsent" import { trackLinkClick } from "@/utils/tracking/profilingConsent" import styles from "./form.module.css" +import { + privacy, + scandicFriends, +} from "@scandic-hotels/common/constants/routes/customerService" interface SignUpFormProps { title: string @@ -362,7 +364,7 @@ export default function SignupForm({ {str} @@ -372,7 +374,7 @@ export default function SignupForm({ {str} diff --git a/apps/scandic-web/components/HotelReservation/MyStay/TermsAndConditions/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/TermsAndConditions/index.tsx index 863efe95b..a3d00f2ff 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/TermsAndConditions/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/TermsAndConditions/index.tsx @@ -1,8 +1,6 @@ import { useFormContext } from "react-hook-form" import { useIntl } from "react-intl" -import { bookingTermsAndConditionsRoutes } from "@scandic-hotels/common/constants/routes/bookingTermsAndConditionsRoutes" -import { privacyPolicyRoutes } from "@scandic-hotels/common/constants/routes/privacyPolicyRoutes" import Checkbox from "@scandic-hotels/design-system/Form/Checkbox" import { ErrorMessage } from "@scandic-hotels/design-system/Form/ErrorMessage" import { TextLink } from "@scandic-hotels/design-system/TextLink" @@ -12,6 +10,10 @@ import useLang from "@/hooks/useLang" import { getErrorMessage } from "@/utils/getErrorMessage" import styles from "./termsAndConditions.module.css" +import { + bookingTerms, + privacy, +} from "@scandic-hotels/common/constants/routes/customerService" export default function TermsAndConditions() { const intl = useIntl() @@ -28,7 +30,7 @@ export default function TermsAndConditions() { { termsAndConditionsLink: (str) => ( (