Add Profile link to main navigation when user is logged in
cgen-15bf75f85c6f48e8b5b30b4651bfbeae
This commit is contained in:
parent
812b8696e5
commit
6ed1bcc996
1 changed files with 8 additions and 0 deletions
|
|
@ -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" });
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue