From 8cb89550f02b47e8d9edaccd59108130048bd6a4 Mon Sep 17 00:00:00 2001 From: "lkh14011424@gmail.com" Date: Sat, 31 Aug 2024 09:10:10 +0900 Subject: [PATCH] =?UTF-8?q?[feat/#28]=20=EB=A1=9C=EA=B7=B8=EC=95=84?= =?UTF-8?q?=EC=9B=83=20=EC=8B=9C=EC=97=90=20=EC=95=8C=EB=A6=BC=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=EB=8F=84=20=EB=A1=9C=EC=BB=AC=20=EC=8A=A4=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=EC=A7=80=EC=97=90=EC=84=9C=20=EC=A7=80=EC=9A=B0?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SideNav.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/SideNav.tsx b/src/components/SideNav.tsx index 369dac9..8465275 100644 --- a/src/components/SideNav.tsx +++ b/src/components/SideNav.tsx @@ -7,6 +7,7 @@ import { Link, useLocation, useNavigate } from "react-router-dom" import { useSnapshotStore } from "@/store/SnapshotStore" import { useMemo } from "react" import { clearAccessToken } from "@/api/axiosInstance" +import { useNotificationStore } from "@/store/NotificationStore" const navItems = [ { @@ -35,10 +36,12 @@ export default function SideNav(): React.ReactElement { const logoutHandler = (): void => { const clearUser = useAuthStore.persist.clearStorage const clearSnapshot = useSnapshotStore.persist.clearStorage + const clearNotification = useNotificationStore.persist.clearStorage clearUser() clearSnapshot() clearAccessToken() + clearNotification() logout(() => { navigate("/")