{
Onlinefondet
- {/* DESKTOP NAVBAR */}
-
- {navLinks.map((link) => (
-
- {link.title}
-
- ))}
-
-
- {/* MOBILE HAMBURGER MENU */}
-
+ {/* HAMBURGER MENU */}
+
{showNavMenu && (
{
key={link.title}
to={link.path}
className="block py-2 px-4 hover:bg-[#1e2334] transition text-lg"
+ onClick={() => setShowNavMenu(false)}
>
{link.title}
@@ -92,16 +96,35 @@ const Navbar = () => {
)}
-
-
-
-
);
};
-export default Navbar;
+const DesktopNavbar = () => (
+
+
+ Onlinefondet
+
+
+ {/* NAV-ITEMS */}
+
+ {navLinks.map((link) => (
+
+ {link.title}
+
+ ))}
+
+
+
+
+
+
+);
diff --git a/tsconfig.json b/tsconfig.json
index 1ffef60..c452f43 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -4,4 +4,4 @@
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
-}
+}
\ No newline at end of file