From b122f2ff4f579d1e86ad95426a69cef0936e71b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Thu, 27 Nov 2025 07:48:34 +0000 Subject: [PATCH] Merged in feat/LOY-490-cleanup-profiling-consent (pull request #3237) Feat/LOY-490 cleanup profiling consent * chore(LOY-490): cleanup accordion * xhore(LOY-490): cleanup signup * fix(LOY-490): use correct tokens * fi(LOY-490): change button to correct color * fix(LOY-490): switch deprecated Link Approved-by: Chuma Mcphoy (We Ahead) --- .../components/Forms/Signup/form.module.css | 6 - .../components/Forms/Signup/index.tsx | 45 +--- .../ProfilingConsent/Accordion/index.tsx | 217 +----------------- .../Accordion/personalizationLegalText.tsx | 22 +- .../profilingConsentAccordion.module.css | 72 ------ .../Modal/profilingConsentModal.module.css | 8 +- .../utils/tracking/profilingConsent.ts | 6 +- .../TextLinkButton/TextLinkButton.tsx | 1 + 8 files changed, 39 insertions(+), 338 deletions(-) diff --git a/apps/scandic-web/components/Forms/Signup/form.module.css b/apps/scandic-web/components/Forms/Signup/form.module.css index 3322021bd..0fe65ef40 100644 --- a/apps/scandic-web/components/Forms/Signup/form.module.css +++ b/apps/scandic-web/components/Forms/Signup/form.module.css @@ -27,12 +27,6 @@ gap: var(--Space-x1); } -.personalizationMoreInfo { - display: grid; - grid-template-columns: auto 1fr; - align-items: start; - gap: var(--Space-x2); -} .personalizationButton { width: fit-content; } diff --git a/apps/scandic-web/components/Forms/Signup/index.tsx b/apps/scandic-web/components/Forms/Signup/index.tsx index 352f03a60..a26ef0969 100644 --- a/apps/scandic-web/components/Forms/Signup/index.tsx +++ b/apps/scandic-web/components/Forms/Signup/index.tsx @@ -18,8 +18,8 @@ import Checkbox from "@scandic-hotels/design-system/Form/Checkbox" import CountrySelect from "@scandic-hotels/design-system/Form/Country" import DateSelect from "@scandic-hotels/design-system/Form/Date" import Phone from "@scandic-hotels/design-system/Form/Phone" -import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" -import Link from "@scandic-hotels/design-system/OldDSLink" +import { TextLink } from "@scandic-hotels/design-system/TextLink" +import { TextLinkButton } from "@scandic-hotels/design-system/TextLinkButton" import { toast } from "@scandic-hotels/design-system/Toast" import { Typography } from "@scandic-hotels/design-system/Typography" import { useFormTracking } from "@scandic-hotels/tracking/useFormTracking" @@ -39,7 +39,6 @@ import { getErrorMessage } from "@/utils/getErrorMessage" import { requestOpen } from "@/utils/profilingConsent" import { trackLinkClick } from "@/utils/tracking/profilingConsent" -// import { type SignUpSchema, signUpSchema } from "./schema" import styles from "./form.module.css" import type { SignUpFormProps } from "@/types/components/form/signupForm" @@ -300,31 +299,7 @@ export default function SignupForm({ title }: SignUpFormProps) { "I consent to Scandic using my information to give me even more personalized travel inspiration and offers from Scandic and trusted Scandic Friends partners. This means Scandic may use information about my interactions with Scandic Friends partners, and share details of my interactions with Scandic with those partners, to make the experience even more relevant to me.", })} -
- -

- {intl.formatMessage({ - id: "signup.GetATailoredProfile", - defaultMessage: - "Get a tailored profile that adapts to your interests.", - })} -

-
-
- -

- {intl.formatMessage({ - id: "signup.PersonalizedOffersEarlyAccess", - defaultMessage: - "Personalized offers, early access to campaigns, and deals you won't find anywhere else!", - })} -

-
-