From 770205f2936ccbf5fd235ccadee30f7543e3ec86 Mon Sep 17 00:00:00 2001 From: sabdayagra Date: Fri, 10 Jan 2025 11:06:04 +0700 Subject: [PATCH] feat: add massage notif in navbar --- components/landing-page/navbar.tsx | 33 ++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/components/landing-page/navbar.tsx b/components/landing-page/navbar.tsx index 66c302a3..e129cb72 100644 --- a/components/landing-page/navbar.tsx +++ b/components/landing-page/navbar.tsx @@ -57,8 +57,6 @@ const Navbar = () => { const [isMessageActive, setIsMessageActive] = useState(true); const [notificationsUpdate, setNotificationsUpdate] = useState([]); - - let prefixPath = poldaName ? `/polda/${poldaName}` : satkerName ? `/satker/${satkerName}` : "/"; let active = ""; @@ -334,15 +332,34 @@ const Navbar = () => { - + - Pesan Masuk + setIsMessageActive(true)} + > + Pesan Masuk + - - - Kelola Konten - + setIsMessageActive(false)} + > + Update +