contact-add-placeholders

This commit is contained in:
JaiPandey425 2025-07-29 13:33:03 +05:30
parent 8dca832d11
commit 0361ae7c04
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,7 @@ const ContactForm = ({ onSubmit, loading }: Props) => {
onChange={(e) => handleChange(field as keyof ContactData, e.target.value)} onChange={(e) => handleChange(field as keyof ContactData, e.target.value)}
required={true} 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" 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>} {errors[field] && <span className="text-sm text-red-500 mt-1">{errors[field]}</span>}
</div> </div>
@ -177,6 +178,7 @@ const ContactForm = ({ onSubmit, loading }: Props) => {
onChange={(e) => handlePhoneChange(index, e.target.value)} 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" 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} maxLength={15}
placeholder='Enter Phone Numbers'
/> />
{formData.phones.length > 1 && ( {formData.phones.length > 1 && (
<button <button