diff --git a/app/register/owner/page.js b/app/register/owner/page.js index b767dc4..ffc9154 100644 --- a/app/register/owner/page.js +++ b/app/register/owner/page.js @@ -29,6 +29,7 @@ export default function OwnerRegisterPage() { email: '', phone: '', whatsapp: '', + nationalNumber: '', password: '', confirmPassword: '', ownerType: OwnerType.PERSON, @@ -129,6 +130,7 @@ export default function OwnerRegisterPage() { email: formData.email, phoneNumber: formData.phone || '', whatsAppNumber: formData.whatsapp, + nationalNumber: formData.nationalNumber, password: formData.password, ownerType: formData.ownerType, }; @@ -358,6 +360,20 @@ export default function OwnerRegisterPage() { {errors.whatsapp &&

{errors.whatsapp}

} + + +
+
+ +
+ { setFormData({...formData, nationalNumber: e.target.value}); setErrors({...errors, nationalNumber: null}); }} + className={`w-full pr-12 pl-4 py-3 bg-white/5 border rounded-xl focus:outline-none focus:ring-2 focus:ring-amber-500 focus:border-transparent text-white placeholder-gray-500 transition-all ${errors.nationalNumber ? 'border-red-500' : 'border-gray-700'}`} + placeholder="أدخل الرقم الوطني" /> +
+ {errors.nationalNumber &&

{errors.nationalNumber}

} +
+ { setFormData({...formData, whatsapp: e.target.value}); setErrors({...errors, whatsapp: null}); }} + className={`w-full pr-12 pl-4 py-3 bg-white/5 border rounded-xl focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-white placeholder-gray-500 transition-all ${errors.whatsapp ? 'border-red-500' : 'border-gray-700'}`} + placeholder="أدخل رقم الواتساب" /> + + {errors.whatsapp &&

{errors.whatsapp}

} +
+ + + +
+
+ +
+ { setFormData({...formData, nationalNumber: e.target.value}); setErrors({...errors, nationalNumber: null}); }} + className={`w-full pr-12 pl-4 py-3 bg-white/5 border rounded-xl focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-white placeholder-gray-500 transition-all ${errors.nationalNumber ? 'border-red-500' : 'border-gray-700'}`} + placeholder="أدخل الرقم الوطني" /> +
+ {errors.nationalNumber &&

{errors.nationalNumber}

} +
+