jai #10

Merged
jaipandey merged 2 commits from jai into main 2025-07-29 11:20:26 +00:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 0361ae7c04 - Show all commits

View File

@ -159,6 +159,7 @@ const ContactForm = ({ onSubmit, loading }: Props) => {
onChange={(e) => handleChange(field as keyof ContactData, e.target.value)}
required={true}
className="px-3 py-1.5 border border-gray-400 rounded-md focus:outline-none focus:ring-1 focus:ring-[var(--primary)] text-sm"
placeholder={`Enter ${label}`}
/>
{errors[field] && <span className="text-sm text-red-500 mt-1">{errors[field]}</span>}
</div>
@ -177,6 +178,7 @@ const ContactForm = ({ onSubmit, loading }: Props) => {
onChange={(e) => handlePhoneChange(index, e.target.value)}
className="flex-1 px-3 py-1.5 border border-gray-400 rounded-md focus:outline-none focus:ring-1 focus:ring-[var(--primary)] text-sm"
maxLength={15}
placeholder='Enter Phone Numbers'
/>
{formData.phones.length > 1 && (
<button