Add Profile link to main navigation when user is logged in

cgen-15bf75f85c6f48e8b5b30b4651bfbeae
This commit is contained in:
Builder.io 2025-08-06 20:07:34 +00:00
parent 812b8696e5
commit 6ed1bcc996

View file

@ -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" });
};