From f5c7c7e75729f8843b94cf1012d8794502ac169a Mon Sep 17 00:00:00 2001 From: Xharles Date: Wed, 10 Jan 2024 11:00:29 +0100 Subject: [PATCH] add new items notification badge --- .../navigation/MobileBottomNav.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/ui-kit/src/mobile-components/navigation/MobileBottomNav.tsx b/packages/ui-kit/src/mobile-components/navigation/MobileBottomNav.tsx index abf81a5e0..f6fa38fe1 100644 --- a/packages/ui-kit/src/mobile-components/navigation/MobileBottomNav.tsx +++ b/packages/ui-kit/src/mobile-components/navigation/MobileBottomNav.tsx @@ -6,46 +6,60 @@ const navigation = [ name: "Superfeed", href: "#", current: true, + hasNew: true, icon: , }, { name: "Portfolio", href: "#", current: false, + hasNew: true, + icon: , }, { name: "Events", href: "#", current: false, + hasNew: false, icon: , }, { name: "Settings", href: "#", current: false, + hasNew: true, icon: , }, { name: "Places", href: "#", current: false, + hasNew: false, icon: , }, ]; -const NavItem = ({ href, icon, current }: (typeof navigation)[0]) => ( +const NavItem = ({ href, icon, current, hasNew }: (typeof navigation)[0]) => ( {icon} + {hasNew && ( + + )} );