From 5f6ccafbba127528147648a055dc61af140a265a Mon Sep 17 00:00:00 2001 From: bottlewook Date: Wed, 6 Mar 2024 01:25:01 +0900 Subject: [PATCH] =?UTF-8?q?design:=20=EB=A7=88=EC=9D=B4=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EC=9C=84=EC=B9=98=20=EC=88=98=EC=A0=95=20#256?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/withAuth.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hooks/withAuth.tsx b/src/hooks/withAuth.tsx index 807cfab..0ccafb8 100644 --- a/src/hooks/withAuth.tsx +++ b/src/hooks/withAuth.tsx @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { ComponentType, useEffect } from 'react'; -import { toast } from 'react-toastify'; import { useRouter } from 'next/navigation'; @@ -18,8 +17,7 @@ function withAuth>( useEffect(() => { if (userId == null) { - router.push('/'); - toast.info('로그인 해주세요.'); + router.replace('/login'); } }, [userId, router]);