Skip to content

Commit

Permalink
[Refactor] : 학교 이메일 인증 페이지 QA 개선 반영 (#80)
Browse files Browse the repository at this point in the history
* fix: email 인증 error코드 중복 제거

* refac: 스팸메일함 안내문구 추가

* chore: 채널톡 위젯 삭제
  • Loading branch information
eugene028 authored Aug 3, 2024
1 parent 4de4ff3 commit 909c3c5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 89 deletions.
64 changes: 0 additions & 64 deletions src/components/chatbot/ChannelService.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/components/chatbot/Chatbot.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/hooks/mutation/useSendStudentEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ export default function useSendStudentEmail() {
onSuccess: () => {
toast('메일 전송이 완료되었습니다.');
navigation(RoutePath.Dashboard);
},
onError: (error) => {
toast(error.message);
}
});

Expand Down
2 changes: 0 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { GlobalStyle } from '@/styles';
import { Global } from '@emotion/react';
import { ToastContainer } from 'react-toastify';
import './styles/styles.scss';
import Chatbot from '@/components/chatbot/Chatbot';

const queryClient = new QueryClient({
defaultOptions: {
Expand All @@ -24,7 +23,6 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
<QueryClientProvider client={queryClient}>
<BottomSheetProvider>
<Global styles={GlobalStyle} />
<Chatbot />
<Routers />
<ReactQueryDevtools />
</BottomSheetProvider>
Expand Down
8 changes: 5 additions & 3 deletions src/pages/StudentVerification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -39,7 +39,7 @@ export const StudentVerification = () => {
onSubmit();
};

if (loading) {
if (isPending) {
return <div>로딩중입니다...</div>;
}

Expand Down Expand Up @@ -90,12 +90,14 @@ export const StudentVerification = () => {
* 메일 전송이 최대 30분 가량 늦어질 수 있어요.
<br />* 메일 전송이 되지 않을 경우 카카오톡 채널을 통해 코어 멤버에게
문의해 주세요.
<br />* 인증메일이 스팸메일함에 전송될 수 있으니 확인해주세요.
</Text>
<ButtonContainer>
<Button disabled={!isValid} style={{ maxWidth: '100%' }}>
인증메일 받기
</Button>
<StudentGuideLink
color={color.sub}
to={RoutePath.StudentEmailLinkGuideLink}
target="_blank">
학교 이메일이 무엇인가요?
Expand Down Expand Up @@ -130,7 +132,7 @@ const StudentGuideLink = styled(Link)`
color: ${color.sub};
}
&:visited {
color: ${color.textBlack};
color: ${color.sub};
}
${typography.label2};
`;
Expand Down

0 comments on commit 909c3c5

Please sign in to comment.