|
|
@ -151,7 +151,7 @@ export const AccountRegisterForm = ({ |
|
|
|
// '4자 이상, 20자 미만 영문자 또는 숫자로 입력해 주세요.'
|
|
|
|
// '4자 이상, 20자 미만 영문자 또는 숫자로 입력해 주세요.'
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
userPswd: yup.string().required('비밀번호를 입력해 주세요.'), |
|
|
|
userPswd: yup.string().required('비밀번호를 입력해 주세요.'), |
|
|
|
genderCd: yup.string().required('성별을 선택해 주세요.'), |
|
|
|
// genderCd: yup.string().required('성별을 선택해 주세요.'),
|
|
|
|
brthdyDate: yup |
|
|
|
brthdyDate: yup |
|
|
|
.string() |
|
|
|
.string() |
|
|
|
.required('생년월일을 입력해 주세요.') |
|
|
|
.required('생년월일을 입력해 주세요.') |
|
|
@ -172,7 +172,7 @@ export const AccountRegisterForm = ({ |
|
|
|
/^(01[0-1])([1-9][0-9]{3})([0-9]{4})$/, |
|
|
|
/^(01[0-1])([1-9][0-9]{3})([0-9]{4})$/, |
|
|
|
'올바른 휴대폰번호를 입력해 주세요.' |
|
|
|
'올바른 휴대폰번호를 입력해 주세요.' |
|
|
|
), |
|
|
|
), |
|
|
|
cntryCd: yup.string().required('국가를 선택해 주세요.'), |
|
|
|
// cntryCd: yup.string().required('국가를 선택해 주세요.'),
|
|
|
|
clncd: yup.string().required('국가번호를 선택해 주세요.'), |
|
|
|
clncd: yup.string().required('국가번호를 선택해 주세요.'), |
|
|
|
userPswd: yup |
|
|
|
userPswd: yup |
|
|
|
.string() |
|
|
|
.string() |
|
|
@ -211,6 +211,7 @@ export const AccountRegisterForm = ({ |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const onSubmit = async data => { |
|
|
|
const onSubmit = async data => { |
|
|
|
|
|
|
|
console.log(data); |
|
|
|
if (isObjEmpty(errors)) { |
|
|
|
if (isObjEmpty(errors)) { |
|
|
|
if (!isCrtfy) { |
|
|
|
if (!isCrtfy) { |
|
|
|
setModal({ |
|
|
|
setModal({ |
|
|
|