diff --git a/app/frontend/src/pages/Main/index.tsx b/app/frontend/src/pages/Main/index.tsx index 1f801a314..fe0b9ac8a 100644 --- a/app/frontend/src/pages/Main/index.tsx +++ b/app/frontend/src/pages/Main/index.tsx @@ -1,7 +1,7 @@ import { ReactComponent as GoogleIcon } from '@/assets/icons/google.svg'; import { Button } from '@/components'; import { MAIN_IMAGE, URL } from '@/constants'; -import { useUserAtom } from '@/stores'; +import { getCookies } from '@/utils'; import * as styles from './index.css'; @@ -9,7 +9,8 @@ export function Main() { const onClickGoogleLogin = () => { window.location.href = `${URL.API}/auth/google/login`; }; - const [user] = useUserAtom(); + + const isLogin = getCookies('access_token'); return (