Last active
October 31, 2017 23:00
-
-
Save diego3g/55acb8c26e465cd35fb0f2770fcf2f2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default withFormik({ | |
mapPropsToValues: () => ({ email: '', password: '' }), | |
validationSchema: Yup.object().shape({ | |
email: Yup.string() | |
.email('Digite um e-mail válido') | |
.required('Preencha o campo de e-mail'), | |
password: Yup.string() | |
.min(6, 'A senha deve ter no mínimo 6 caracteres') | |
.required('Preencha o campo de senha'), | |
}), | |
handleSubmit: (values) => { | |
... | |
} | |
})(App); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment