From 9e026118e06b5c9bc26a87a3d5c99685fef25c3d Mon Sep 17 00:00:00 2001 From: Jisung Jeong Date: Mon, 5 Aug 2024 13:41:38 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=8A=A4=ED=83=80=EC=9D=BC=20?= =?UTF-8?q?=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Layout/NavigationBar.tsx | 21 ++++++++++++------- .../NavigationDropdown/NavigationDropdown.tsx | 2 +- .../NotificationDropdown.tsx | 2 +- pages/mypage.tsx | 1 - 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/components/Layout/NavigationBar.tsx b/components/Layout/NavigationBar.tsx index 4269b12..6a9d6b7 100644 --- a/components/Layout/NavigationBar.tsx +++ b/components/Layout/NavigationBar.tsx @@ -58,7 +58,7 @@ export default function NavigationBar() { } return ( -
+
@@ -78,16 +78,21 @@ export default function NavigationBar() { checked={darkMode} /> {isLoggedIn ? ( -
- diff --git a/components/NavigationDropdown/NavigationDropdown.tsx b/components/NavigationDropdown/NavigationDropdown.tsx index 3379950..7143767 100644 --- a/components/NavigationDropdown/NavigationDropdown.tsx +++ b/components/NavigationDropdown/NavigationDropdown.tsx @@ -6,7 +6,7 @@ export default function NavigationDropdown() { return (
+
알림 {data ? `${data.totalCount}` : '0'}개 diff --git a/pages/mypage.tsx b/pages/mypage.tsx index 9c636e3..7b6f3c3 100644 --- a/pages/mypage.tsx +++ b/pages/mypage.tsx @@ -8,7 +8,6 @@ import useLoginState from '@/hooks/useLoginState'; import { useSideNavigation } from '@/hooks/useSideNavigation'; import { GetServerSideProps } from 'next'; import { useRouter } from 'next/router'; -import { useEffect } from 'react'; export const getServerSideProps: GetServerSideProps = async () => { const OGTitle = '내정보 | GLOBALNOMAD';