fix: add custom email error message for signup

This commit is contained in:
Rıdvan Akca
2023-03-07 15:25:40 +03:00
parent 29ad68afab
commit 7908779c89
2 changed files with 7 additions and 2 deletions

View File

@@ -17,7 +17,11 @@ import useFormatMessage from 'hooks/useFormatMessage';
const validationSchema = yup.object().shape({
fullName: yup.string().trim().required('signupForm.mandatoryInput'),
email: yup.string().trim().email().required('signupForm.mandatoryInput'),
email: yup
.string()
.trim()
.email('signupForm.validateEmail')
.required('signupForm.mandatoryInput'),
password: yup.string().required('signupForm.mandatoryInput'),
confirmPassword: yup
.string()