fix(SW-1273): update customer service info with link instead of phone number

This commit is contained in:
Christian Andolf
2025-02-26 16:40:55 +01:00
parent 8f17622f21
commit 7a8b926f0a
7 changed files with 27 additions and 14 deletions

View File

@@ -5,6 +5,7 @@ import { useRouter } from "next/navigation"
import { FormProvider, useForm } from "react-hook-form"
import { useIntl } from "react-intl"
import { customerService } from "@/constants/currentWebHrefs"
import { trpc } from "@/lib/trpc/client"
import Button from "@/components/TempDesignSystem/Button"
@@ -101,8 +102,20 @@ export default function Form() {
</Caption>
<Caption>
{intl.formatMessage(
{ id: "Please call customer service at {phoneNr}" },
{ phoneNr: <Link href="tel:XXXXXX">XXXXXX</Link> }
{ id: "Please contact <link>customer service</link>." },
{
link: (str) => (
<Link
href={customerService[lang]}
size="small"
color="uiTextPlaceholder"
textDecoration="underline"
target="_blank"
>
{str}
</Link>
),
}
)}
</Caption>
</div>