@opexa/portal-components 0.0.257 → 0.0.258
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -105,17 +105,20 @@ export function SignUpFormKYC() {
|
|
|
105
105
|
firstName: z
|
|
106
106
|
.string()
|
|
107
107
|
.min(2, 'First name must be 2 or more characters')
|
|
108
|
-
.max(
|
|
108
|
+
.max(20, 'First name must not be more than 50 characters')
|
|
109
|
+
.regex(/\S/, 'First name cannot be empty or contain only spaces')
|
|
109
110
|
.trim(),
|
|
110
111
|
middleName: z
|
|
111
112
|
.string()
|
|
112
113
|
.min(2, 'Middle name must be 2 or more characters')
|
|
113
|
-
.max(
|
|
114
|
+
.max(20, 'Middle name must not be more than 50 characters')
|
|
115
|
+
.regex(/\S/, 'Middle name cannot be empty or contain only spaces')
|
|
114
116
|
.trim(),
|
|
115
117
|
lastName: z
|
|
116
118
|
.string()
|
|
117
119
|
.min(2, 'Last name must be 2 or more characters')
|
|
118
|
-
.max(
|
|
120
|
+
.max(20, 'Last name must not be more than 50 characters')
|
|
121
|
+
.regex(/\S/, 'Last name cannot be empty or contain only spaces')
|
|
119
122
|
.trim(),
|
|
120
123
|
birthDay: z
|
|
121
124
|
.date({
|