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 4343 "@lemoncode/fonk-final-form" : " ^2.3.1" ,
4444 "@lemoncode/fonk-formik" : " ^4.0.1" ,
4545 "@lemoncode/fonk-match-field-validator" : " ^1.0.1" ,
46+ "@lemoncode/fonk-required-by-field-validator" : " ^1.0.1" ,
4647 "@material-ui/core" : " 4.9.11" ,
4748 "@material-ui/icons" : " ^4.9.1" ,
4849 "@material-ui/lab" : " 4.0.0-alpha.47" ,
4950 "axios" : " ^0.19.0" ,
5051 "emotion" : " ^10.0.23" ,
5152 "final-form" : " ^4.18.6" ,
5253 "formik" : " ^2.1.4" ,
53- "immer" : " ^6.0.3" ,
5454 "graphql-request" : " ^1.8.2" ,
55+ "immer" : " ^6.0.3" ,
5556 "lodash.flowright" : " ^3.5.0" ,
5657 "lodash.get" : " ^4.4.2" ,
5758 "lodash.merge" : " ^4.6.2" ,
Original file line number Diff line number Diff line change 11import { ValidationSchema , Validators } from '@lemoncode/fonk' ;
22import { createFormikValidation } from '@lemoncode/fonk-formik' ;
3- import { matchField } from '@lemoncode/fonk-match -field-validator' ;
3+ import { requiredByField } from '@lemoncode/fonk-required-by -field-validator' ;
44
55export const validationSchema : ValidationSchema = {
66 field : {
@@ -15,7 +15,7 @@ export const validationSchema: ValidationSchema = {
1515 ] ,
1616 temporalPassword : [
1717 {
18- validator : matchField . validator ,
18+ validator : requiredByField . validator ,
1919 customArgs : { field : 'password' } ,
2020 } ,
2121 ] ,
You can’t perform that action at this time.
0 commit comments