From 0b05a6604b7e5b0836529fe0f1e64ecf7c8e7e03 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Thu, 1 Aug 2024 21:07:28 +0900 Subject: [PATCH 1/6] =?UTF-8?q?fix:=20email=20=EC=9D=B8=EC=A6=9D=20error?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=A4=91=EB=B3=B5=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/mutation/useSendStudentEmail.ts | 3 --- src/pages/StudentVerification.tsx | 7 ++++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/hooks/mutation/useSendStudentEmail.ts b/src/hooks/mutation/useSendStudentEmail.ts index 63aabf7..a8077b1 100644 --- a/src/hooks/mutation/useSendStudentEmail.ts +++ b/src/hooks/mutation/useSendStudentEmail.ts @@ -11,9 +11,6 @@ export default function useSendStudentEmail() { onSuccess: () => { toast('메일 전송이 완료되었습니다.'); navigation(RoutePath.Dashboard); - }, - onError: (error) => { - toast(error.message); } }); diff --git a/src/pages/StudentVerification.tsx b/src/pages/StudentVerification.tsx index 9668a05..afe7d63 100644 --- a/src/pages/StudentVerification.tsx +++ b/src/pages/StudentVerification.tsx @@ -17,7 +17,7 @@ export const StudentVerification = () => { //TODO: 추후 pending 상태 백엔드 API 수정하면 반영해둘것. const [, setPending] = useState(false); const [isClicked, setIsClicked] = useState(false); - const { onSubmit, control, isValid, onVerifyStudent, loading } = + const { onSubmit, control, isValid, onVerifyStudent, isPending } = useStudentVerification(); const IsStudentVerified = async () => { @@ -39,7 +39,7 @@ export const StudentVerification = () => { onSubmit(); }; - if (loading) { + if (isPending) { return
로딩중입니다...
; } @@ -96,6 +96,7 @@ export const StudentVerification = () => { 인증메일 받기 학교 이메일이 무엇인가요? @@ -130,7 +131,7 @@ const StudentGuideLink = styled(Link)` color: ${color.sub}; } &:visited { - color: ${color.textBlack}; + color: ${color.sub}; } ${typography.label2}; `; From 4af970892a79feda4428a4e28391c2b1cbf8e9b7 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Thu, 1 Aug 2024 21:08:42 +0900 Subject: [PATCH 2/6] =?UTF-8?q?refac:=20=EC=8A=A4=ED=8C=B8=EB=A9=94?= =?UTF-8?q?=EC=9D=BC=ED=95=A8=20=EC=95=88=EB=82=B4=EB=AC=B8=EA=B5=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/StudentVerification.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/StudentVerification.tsx b/src/pages/StudentVerification.tsx index afe7d63..5b24c9e 100644 --- a/src/pages/StudentVerification.tsx +++ b/src/pages/StudentVerification.tsx @@ -90,6 +90,7 @@ export const StudentVerification = () => { * 메일 전송이 최대 30분 가량 늦어질 수 있어요.
* 메일 전송이 되지 않을 경우 카카오톡 채널을 통해 코어 멤버에게 문의해 주세요. +
* 인증메일이 스팸메일함에 전송될 수 있으니 확인해주세요.