Add navItems constant
cgen-d6361447b6cf4916b9ebc0c1a76f322c
This commit is contained in:
parent
45aa593a7c
commit
55e471767b
1 changed files with 2 additions and 0 deletions
|
|
@ -58,6 +58,8 @@ export default function Layout({ children }: LayoutProps) {
|
|||
{ name: "Contact", href: "/contact" },
|
||||
];
|
||||
|
||||
const navItems = user ? userNavigation : navigation;
|
||||
|
||||
const scrollToTop = () => {
|
||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue