fix(SW-1273): update customer service info with link instead of phone number
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user