diff --git a/src/app/notification/page.tsx b/src/app/notification/page.tsx index e4433c5..054ef48 100644 --- a/src/app/notification/page.tsx +++ b/src/app/notification/page.tsx @@ -1,6 +1,7 @@ "use client"; import { Card, CardContent } from "@/components/ui/card"; +import { BellIcon } from "lucide-react"; export default function Notification() { const sampleNotifications = [ @@ -17,7 +18,24 @@ export default function Notification() { - 1 + + {sampleNotifications.map((notification, index) => ( + + + + + + {notification.message} + + {notification.time} + + + + Mark as read + + + ))} + diff --git a/src/components/navigationBar/nav.tsx b/src/components/navigationBar/nav.tsx index fac2336..ec17864 100644 --- a/src/components/navigationBar/nav.tsx +++ b/src/components/navigationBar/nav.tsx @@ -45,27 +45,31 @@ const landings = [ route: "/crm-landing", }, ]; -const ListItem = React.forwardRef, React.ComponentPropsWithoutRef<"a">>( - ({ className, title, children, ...props }, ref) => { - return ( - - - - {title} - - {children} - - - - ); - } -); +const ListItem = React.forwardRef< + React.ElementRef<"a">, + React.ComponentPropsWithoutRef<"a"> +>(({ className, title, children, ...props }, ref) => { + return ( + + + + {title} + + + {children} + + + + + ); +}); ListItem.displayName = "ListItem"; const unAuthenticatedComponents = () => { @@ -82,14 +86,28 @@ const unAuthenticatedComponents = () => { }; const authenticatedComponents = () => { + let notifications = 100; + const displayValue = notifications >= 100 ? "..." : notifications; return ( - + + {" "} + + + + {displayValue} + + + - + 1 @@ -153,7 +171,8 @@ export function NavigationBar() { + aria-label="Brand" + > B2DVentures @@ -165,11 +184,17 @@ export function NavigationBar() { - Businesses + + Businesses + {businessComponents.map((component) => ( - + {component.description} ))} @@ -178,11 +203,17 @@ export function NavigationBar() { - Projects + + Projects + {projectComponents.map((component) => ( - + {component.description} ))} @@ -191,11 +222,17 @@ export function NavigationBar() { - Blogs + + Blogs + {blogComponents.map((component) => ( - + {component.description} ))} @@ -204,7 +241,10 @@ export function NavigationBar() { - + Docs
+ {notification.message} +
{notification.time}
{children}
+ {children} +