mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Implement add user function
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { invalidFormatMessage } from '../constants/messages';
|
||||
import { INVALID_FORMAT_MSG } from '../constants/messages';
|
||||
import { TKeyValue, TPropValues, TStateSchema } from '../globals/types';
|
||||
|
||||
const VALUE = 'value';
|
||||
@@ -39,7 +39,7 @@ const addValidator = ({ validatorFunc, prop, required = true }: TValidator) => {
|
||||
required,
|
||||
validator: {
|
||||
func: validatorFunc,
|
||||
error: invalidFormatMessage(prop),
|
||||
error: INVALID_FORMAT_MSG(prop),
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user