Merge from react-practice branch

This commit is contained in:
2023-10-30 09:16:16 +07:00
4 changed files with 14 additions and 22 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { INVALID_FORMAT_MSG } from '../constants/messages';
import { invalidFormatMsg } from '../constants/messages';
import { TKeyValue, TPropValues, TStateSchema, TUser } from '../globals/types';
const VALUE = 'value';
@@ -39,7 +39,7 @@ const addValidator = ({ validatorFunc, prop, required = true }: TValidator) => {
required,
validator: {
func: validatorFunc,
error: INVALID_FORMAT_MSG(prop),
error: invalidFormatMsg(prop),
},
};
};