Define passport href in layout
cgen-0ca4f2dfebff49d6b3292cef4d65b7fb
This commit is contained in:
parent
70255a61f1
commit
1c0421bae4
1 changed files with 4 additions and 0 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue