Closed aleksays closed 4 years ago
Yup scheme example:
someFieldsArray: yup.array().of(yup.object().shape({ fieldName: yup.string().required(), anotherFieldName: yup.string().requried(), })),
stepValidation file -> const stepValidator = ({errors}) => ...???
const stepValidator = ({errors}) => ...???
function stepValidator({ errors }) { return !errors.someFieldsArray; }
Yup scheme example:
stepValidation file ->
const stepValidator = ({errors}) => ...???