diff --git a/src/components/chatbot/ChannelService.ts b/src/components/chatbot/ChannelService.ts
deleted file mode 100644
index 70e5326..0000000
--- a/src/components/chatbot/ChannelService.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
-declare global {
- interface Window {
- ChannelIO: (arg0: string, arg1?: unknown, arg2?: unknown) => void;
- ChannelIOInitialized: boolean;
- }
-}
-
-class ChannelService {
- constructor() {
- this.loadScript();
- }
-
- loadScript() {
- const w = window;
- if (w.ChannelIOInitialized) {
- return;
- }
- const channelIO = function () {
- // eslint-disable-next-line prefer-rest-params
- channelIO.c(arguments);
- };
-
- channelIO.q = [] as any[];
- channelIO.c = function (args: any) {
- channelIO.q.push(args);
- };
- w.ChannelIO = channelIO;
- function initializeChannelIO() {
- if (w.ChannelIOInitialized) {
- return;
- }
- w.ChannelIOInitialized = true;
- const script = document.createElement("script");
- script.type = "text/javascript";
- script.async = true;
- script.src = "https://cdn.channel.io/plugin/ch-plugin-web.js";
- const firstScript = document.getElementsByTagName("script")[0];
- if (firstScript?.parentNode) {
- firstScript.parentNode.insertBefore(script, firstScript);
- }
- }
- if (document.readyState === "complete") {
- initializeChannelIO();
- } else {
- w.addEventListener("DOMContentLoaded", initializeChannelIO);
- w.addEventListener("load", initializeChannelIO);
- }
- }
- boot(settings: any, callback: any) {
- window.ChannelIO("boot", settings, callback);
- }
- onBadgeChanged(callback: (number: number) => void) {
- window.ChannelIO("onBadgeChanged", callback);
- }
- addTags(tags: string[]) {
- window.ChannelIO("addTags", tags);
- }
- shutdown() {
- window.ChannelIO("shutdown");
- }
-}
-
-export default ChannelService;
diff --git a/src/components/chatbot/Chatbot.tsx b/src/components/chatbot/Chatbot.tsx
deleted file mode 100644
index 422ef9e..0000000
--- a/src/components/chatbot/Chatbot.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import { useEffect } from 'react';
-
-import { CHANNELIO_PLUGIN_KEY } from '@constants/environment';
-
-import ChannelService from '@/components/chatbot/ChannelService';
-
-export default function Chatbot() {
- useEffect(() => {
- const channelTalk = new ChannelService();
-
- channelTalk.boot({ pluginKey: CHANNELIO_PLUGIN_KEY }, () => {});
-
- return () => channelTalk.shutdown();
- }, []);
-
- return ;
-}
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/main.tsx b/src/main.tsx
index 44b13d4..7762635 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -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: {
@@ -24,7 +23,6 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
-
diff --git a/src/pages/StudentVerification.tsx b/src/pages/StudentVerification.tsx
index 9668a05..5b24c9e 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 로딩중입니다...
;
}
@@ -90,12 +90,14 @@ export const StudentVerification = () => {
* 메일 전송이 최대 30분 가량 늦어질 수 있어요.
* 메일 전송이 되지 않을 경우 카카오톡 채널을 통해 코어 멤버에게
문의해 주세요.
+
* 인증메일이 스팸메일함에 전송될 수 있으니 확인해주세요.
학교 이메일이 무엇인가요?
@@ -130,7 +132,7 @@ const StudentGuideLink = styled(Link)`
color: ${color.sub};
}
&:visited {
- color: ${color.textBlack};
+ color: ${color.sub};
}
${typography.label2};
`;