From 1c0421bae4ee004923d99648014c0128a00ed3df Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 4 Oct 2025 23:50:53 +0000 Subject: [PATCH] Define passport href in layout cgen-0ca4f2dfebff49d6b3292cef4d65b7fb --- client/components/Layout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index 47ca66fd..0baa26b4 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -58,6 +58,10 @@ export default function CodeLayout({ children }: LayoutProps) { { name: "Contact", href: "/contact" }, ]; + const passportHref = profile?.username + ? `/passport/${profile.username}` + : "/passport/me"; + const navItems = user ? userNavigation : navigation; const scrollToTop = () => {