File tree Expand file tree Collapse file tree
src/pods/employee/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,20 +4,13 @@ import { matchField } from '@lemoncode/fonk-match-field-validator';
44
55export const validationSchema : ValidationSchema = {
66 field : {
7- name : [
8- {
9- validator : Validators . required ,
10- message : 'Campo obligatorio' ,
11- } ,
12- ] ,
7+ name : [ Validators . required ] ,
138 email : [
149 {
1510 validator : Validators . email ,
16- message : 'Introduce un email válido' ,
1711 } ,
1812 {
1913 validator : Validators . required ,
20- message : 'Campo obligatorio' ,
2114 } ,
2215 ] ,
2316 temporalPassword : [
Original file line number Diff line number Diff line change @@ -3,18 +3,8 @@ import { createFormikValidation } from '@lemoncode/fonk-formik';
33
44const validationSchema : ValidationSchema = {
55 field : {
6- month : [
7- {
8- validator : Validators . required ,
9- message : 'Campo obligatorio' ,
10- } ,
11- ] ,
12- year : [
13- {
14- validator : Validators . required ,
15- message : 'Campo obligatorio' ,
16- } ,
17- ] ,
6+ month : [ Validators . required ] ,
7+ year : [ Validators . required ] ,
188 } ,
199} ;
2010
You can’t perform that action at this time.
0 commit comments