From 6ed1bcc996bd1771aa73d3b929275fc1c35f09f9 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 6 Aug 2025 20:07:34 +0000 Subject: [PATCH] Add Profile link to main navigation when user is logged in cgen-15bf75f85c6f48e8b5b30b4651bfbeae --- client/components/Layout.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index 9e706eb4..b9efc7fe 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -28,6 +28,14 @@ export default function Layout({ children }: LayoutProps) { { name: "Contact", href: "/contact" }, ]; + const userNavigation = [ + { name: "Dashboard", href: "/dashboard" }, + { name: "Profile", href: "/profile" }, + { name: "Home", href: "/" }, + { name: "About", href: "/about" }, + { name: "Contact", href: "/contact" }, + ]; + const scrollToTop = () => { window.scrollTo({ top: 0, behavior: "smooth" }); };