Merged in fix/sas-link-flow-links (pull request #1389)

Set correct links in SAS link flow

Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-02-21 12:26:38 +00:00
parent 15dbeb9d46
commit 204bbbbcd4
3 changed files with 24 additions and 9 deletions

View File

@@ -1,15 +1,20 @@
"use client"
import { Link } from "react-aria-components"
import { useIntl } from "react-intl"
import { profile } from "@/constants/routes/myPages"
import ErrorCircleFilledIcon from "@/components/Icons/ErrorCircleFilled"
import Button from "@/components/TempDesignSystem/Button"
import Body from "@/components/TempDesignSystem/Text/Body"
import Title from "@/components/TempDesignSystem/Text/Title"
import useLang from "@/hooks/useLang"
import { SASModal, SASModalContactBlock, SASModalDivider } from "./SASModal"
export function DateOfBirthError() {
const intl = useIntl()
const lang = useLang()
return (
<SASModal>
@@ -23,9 +28,10 @@ export function DateOfBirthError() {
id: "We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.",
})}
</Body>
{/* TODO link to where? */}
<Button theme="base">
{intl.formatMessage({ id: "View your account" })}
<Link href={profile[lang]}>
{intl.formatMessage({ id: "View your account" })}
</Link>
</Button>
<SASModalDivider />
<SASModalContactBlock />