Merged in feat/SW-3250-account-linking-modal-you- (pull request #2819)

feat(SW-3250): Updated UI for already linked account error

* feat(SW-3250): Updated UI for already linked account error


Approved-by: Anton Gunnarsson
This commit is contained in:
Hrishikesh Vaipurkar
2025-09-18 07:39:08 +00:00
parent 65e4623b52
commit c09dc29fee

View File

@@ -1,10 +1,9 @@
"use client" "use client"
import Link from "next/link"
import { useIntl } from "react-intl" import { useIntl } from "react-intl"
import { partnerSas } from "@scandic-hotels/common/constants/routes/myPages" import { partnerSas } from "@scandic-hotels/common/constants/routes/myPages"
import ButtonLink from "@scandic-hotels/design-system/ButtonLink"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton"
import { Typography } from "@scandic-hotels/design-system/Typography" import { Typography } from "@scandic-hotels/design-system/Typography"
import useLang from "@/hooks/useLang" import useLang from "@/hooks/useLang"
@@ -17,11 +16,17 @@ export function AlreadyLinkedError() {
return ( return (
<SASModal> <SASModal>
<MaterialIcon icon="cancel" isFilled size={64} /> <MaterialIcon
icon="check_circle"
color={"Icon/Feedback/Success"}
isFilled
size={64}
/>
<Typography variant="Title/Subtitle/lg"> <Typography variant="Title/Subtitle/lg">
<h1> <h1>
{intl.formatMessage({ {intl.formatMessage({
defaultMessage: "Your accounts are already linked", defaultMessage:
"Your Scandic Friends and SAS EuroBonus accounts are already connected",
})} })}
</h1> </h1>
</Typography> </Typography>
@@ -29,17 +34,22 @@ export function AlreadyLinkedError() {
<p> <p>
{intl.formatMessage({ {intl.formatMessage({
defaultMessage: defaultMessage:
"Looks like youve already linked your Scandic Friends and SAS EuroBonus accounts!", "Great news! You can go straight to My Pages to explore all your perks and rewards!",
})} })}
</p> </p>
</Typography> </Typography>
<Button theme="base" asChild> <Typography variant="Body/Paragraph/mdBold">
<Link href={partnerSas[lang]}> <ButtonLink
href={partnerSas[lang]}
variant={"Tertiary"}
color={"Primary"}
size={"Large"}
>
{intl.formatMessage({ {intl.formatMessage({
defaultMessage: "View your linked accounts", defaultMessage: "View your linked accounts",
})} })}
</Link> </ButtonLink>
</Button> </Typography>
<SASModalDivider /> <SASModalDivider />
<SASModalContactBlock /> <SASModalContactBlock />
</SASModal> </SASModal>