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) => ( (