diff --git a/src/components/account/mypage/AccountMypageForm.js b/src/components/account/mypage/AccountMypageForm.js index 847d187..c656051 100644 --- a/src/components/account/mypage/AccountMypageForm.js +++ b/src/components/account/mypage/AccountMypageForm.js @@ -122,10 +122,31 @@ const AccountMypageForm = ({ userInfo,handlerSmsSend,isCrtfy,seconds_Counter,han - + - + 인증하기 diff --git a/src/containers/account/mypage/AccountMypageContainer.js b/src/containers/account/mypage/AccountMypageContainer.js index 91a065a..b60a4d8 100644 --- a/src/containers/account/mypage/AccountMypageContainer.js +++ b/src/containers/account/mypage/AccountMypageContainer.js @@ -36,15 +36,17 @@ const AccountMypageContainer = () => { const [inputHpno, setInputHpno] = useState(''); const [inputCrtfy, setInputCrtfy] = useState(''); - const [okinput, setOkinput] = useState(false) - const [okcheck, setOkcheck] = useState(''); - const [isRunning, setIsRunning] = useState(false); - const [sendCount, setSendCount] = useState(0); - const [isCrtfy, setIsCrtfy] = useState(false); + const [minutes_Counter, setMinutes_Counter] = useState('03'); const [seconds_Counter, setSeconds_Counter] = useState('00'); const [timer, setTimer] = useState(null); + const [isRunning, setIsRunning] = useState(false); + const [sendCount, setSendCount] = useState(0); + const [isCrtfy, setIsCrtfy] = useState(false); + const [okinput, setOkinput] = useState(false) + const [okcheck, setOkcheck] = useState(''); + const [modal, setModal] = useState({ isOpen: false, title: '', @@ -164,14 +166,13 @@ const AccountMypageContainer = () => { }; useEffect(() => { - setIsRunning(true); - // console.log('isRunning>>>', isRunning); + // setIsRunning(true); if (isRunning) { clearInterval(timer); } return () => { clearInterval(timer); - setIsRunning(false); + // setIsRunning(false); }; }, []); @@ -179,7 +180,7 @@ const AccountMypageContainer = () => { const handlerSmsConfirm = async () => { //const vData = getValues(); - if (!inputCrtfy || !inputHpno) { + if (!inputHpno) { setModal({ isOpen: true, title: '인증번호 인증',