Add PhoneInput component for enhanced phone number input in contact form

This commit is contained in:
Marco Pedone 2025-08-08 15:31:21 +02:00
parent 96a85be96c
commit c574af9096

View file

@ -19,6 +19,7 @@ import { useTranslation } from "~/providers/I18nProvider";
import { CheckCircle } from "lucide-react";
import { useState } from "react";
import { Checkbox } from "~/components/ui/checkbox";
import { PhoneInput } from "~/components/phone-input";
const Contatto: NextPage = () => {
const { locale, t } = useTranslation();
@ -165,11 +166,7 @@ const Contatto: NextPage = () => {
<FormMessage />
</div>
<FormControl>
<Input
placeholder="+39 1234567890"
{...field}
type="text"
/>
<PhoneInput {...field} id="numero" />
</FormControl>
</FormItem>
)}