Skip to content

Commit

Permalink
chore: 코드 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
namdaeun committed Nov 10, 2024
1 parent fe9f635 commit 96bf61c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/page/login/password/auth/PasswordAuthPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const PasswordAuthPage = () => {

const { value: email, onChange: onEmailChange } = useInput('');
const { value: authCode, onChange: onAuthCodeChange } = useInput('');
const { emailSupportingText, setEmailSupportingText, codeSupportingText, setCodeSupportingText } =
useSupportingText();

const {
remainTime,
Expand All @@ -33,12 +35,8 @@ const PasswordAuthPage = () => {
} = useTimer(EMAIL_REMAIN_TIME, SUPPORTING_TEXT.EMAIL_EXPIRED);

const { resendMailMutation } = useResendMailMutation(email);

const { mutate, isError } = useVerifyCodeMutation(email, authCode);

const { emailSupportingText, setEmailSupportingText, codeSupportingText, setCodeSupportingText } =
useSupportingText();

const handleMailSend = () => {
resendMailMutation.mutate(undefined, {
onError: () => {
Expand Down

0 comments on commit 96bf61c

Please sign in to comment.