From e4ff8ef8a82ba8ed2a4de7ecc02f5d4cad947b64 Mon Sep 17 00:00:00 2001 From: Truls Henrik <39614013+trulshj@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:40:28 +0100 Subject: [PATCH] refactor: move "Ferie" into navbar (#555) --- frontend/src/components/NavBar/NavBar.tsx | 1 + .../src/components/NavBar/NavBarDropdown.tsx | 55 ++++++++----------- 2 files changed, 23 insertions(+), 33 deletions(-) diff --git a/frontend/src/components/NavBar/NavBar.tsx b/frontend/src/components/NavBar/NavBar.tsx index 013a2e37..33895785 100644 --- a/frontend/src/components/NavBar/NavBar.tsx +++ b/frontend/src/components/NavBar/NavBar.tsx @@ -25,6 +25,7 @@ export default async function NavBar() { { text: "Kunder", path: "kunder" }, { text: "Konsulenter", path: "konsulenter" }, { text: "Rapporter", path: "rapport" }, + { text: "Ferie", path: "ferie" }, ]; return ( diff --git a/frontend/src/components/NavBar/NavBarDropdown.tsx b/frontend/src/components/NavBar/NavBarDropdown.tsx index 007f450b..561a8176 100644 --- a/frontend/src/components/NavBar/NavBarDropdown.tsx +++ b/frontend/src/components/NavBar/NavBarDropdown.tsx @@ -18,43 +18,32 @@ export default function NavBarDropdown(props: { initial: string }) { }); return ( - <> -
+
+ +
-
- - -

- Ferie -

- - -
- +
); }