diff --git a/src/components/account/mypage/AccountMypageForm.js b/src/components/account/mypage/AccountMypageForm.js index 083db71d..6c6ee5c9 100644 --- a/src/components/account/mypage/AccountMypageForm.js +++ b/src/components/account/mypage/AccountMypageForm.js @@ -43,9 +43,10 @@ const AccountMypageForm = ({ }) => { const history = useHistory(); - function handleUseHitory() { + // 취소 헨들러 + const handleUseHitory = () => { history.push('/'); - } + }; return ( diff --git a/src/components/account/mypage/AccountMypagePwForm.js b/src/components/account/mypage/AccountMypagePwForm.js index b81b88fd..32ac5b66 100644 --- a/src/components/account/mypage/AccountMypagePwForm.js +++ b/src/components/account/mypage/AccountMypagePwForm.js @@ -76,11 +76,13 @@ const AccountMypagePwForm = ({ activeTab }) => { }); }; - function handleUseHitory() { + // 취소 헨들러 + const handleUseHitory = () => { history.push('/'); - } + }; - function pwSubmit() { + // 비밀번호 변경 + const pwSubmit = () => { const reg_pw = /^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[@$!%*#?&])[A-Za-z0-9@$!%*#?&]{8,20}$/; if (!reg_pw.test(inputs.newPswd && inputs.newPswdConfirm)) { @@ -98,11 +100,12 @@ const AccountMypagePwForm = ({ activeTab }) => { } else { dispatch(pwUpdateAction.request(inputs)); } - } + }; - function pwok() { + // 비밀번호 확인 + const pwok = () => { dispatch(pwCheckAction.request(userPswd)); - } + }; return ( diff --git a/src/components/laanc/map/FlightArea.js b/src/components/laanc/map/FlightArea.js index bc079e18..64fa6c0f 100644 --- a/src/components/laanc/map/FlightArea.js +++ b/src/components/laanc/map/FlightArea.js @@ -538,7 +538,7 @@ export default function FlightArea({ handlerDrawType('LINE'); }} > - WayPoint + 선