Skip to content

Commit 3cf7a4e

Browse files
committed
💩 chore:withoutLogin toast 제거
Issue Resolved: #
1 parent 9cfcf0d commit 3cf7a4e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

front/src/components/loaders/WithoutLogin.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import type { PropsWithChildren } from 'react';
2-
import { useEffect } from 'react';
32
import { Navigate } from 'react-router-dom';
43

54
import { useAuthContext } from '@/hooks/useAuthContext.tsx';
65

7-
import { toast } from '@/components/Toast/index.ts';
8-
96
import { ROUTE_URL } from '@/constants/index.ts';
107

118
export default function WithoutLogin({ children }: PropsWithChildren) {
129
const { isLogin } = useAuthContext();
13-
useEffect(() => {
14-
if (isLogin) toast.warning('로그인 후 접근할 수 없습니다.\n로그 아웃 후 이용해주세요.');
15-
}, [isLogin]);
1610
if (isLogin) {
1711
return <Navigate to={ROUTE_URL.PROGRAM.DEFAULT} />;
1812
}

0 commit comments

Comments
 (0)