feat(phone-input): integrate phone number input component and validation
- Added `libphonenumber-js` dependency for improved phone number handling. - Refactored `CreateAdmin` form to utilize a new `PhoneNumberInput` component with validation rules. - Updated `useCreateAdminPresenter` to normalize phone number input before submission. - Enhanced error messages for phone validation in `Texts` constant. - Modified `User` schema to validate phone numbers using E.164 format.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
"gsap": "^3.15.0",
|
||||
"js-cookie": "^3.0.5",
|
||||
"jsvectormap": "^1.6.0",
|
||||
"libphonenumber-js": "^1.13.2",
|
||||
"lottie-react": "^2.4.1",
|
||||
"moment": "^2.30.1",
|
||||
"next": "15.1.9",
|
||||
|
||||
Reference in New Issue
Block a user