From 58879693f39259a205071f548297c52c8b12f367 Mon Sep 17 00:00:00 2001
From: sabaimran
Date: Tue, 28 Jan 2025 18:12:50 -0800
Subject: [PATCH] Simplify nav menu and add a teams section
---
.../web/app/components/navMenu/navMenu.tsx | 52 +++++++++++--------
1 file changed, 31 insertions(+), 21 deletions(-)
diff --git a/src/interface/web/app/components/navMenu/navMenu.tsx b/src/interface/web/app/components/navMenu/navMenu.tsx
index f45fe3c2..7f4c2c1e 100644
--- a/src/interface/web/app/components/navMenu/navMenu.tsx
+++ b/src/interface/web/app/components/navMenu/navMenu.tsx
@@ -12,7 +12,7 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
-import { Moon, Sun, UserCircle, Question, ArrowRight, Code } from "@phosphor-icons/react";
+import { Moon, Sun, UserCircle, Question, ArrowRight, Code, BuildingOffice } from "@phosphor-icons/react";
import { useIsMobileWidth } from "@/app/common/utils";
import LoginPrompt from "../loginPrompt/loginPrompt";
import { Button } from "@/components/ui/button";
@@ -87,6 +87,24 @@ export default function FooterMenu({ sideBarIsOpen }: NavMenuProps) {
localStorage.setItem("theme", darkMode ? "dark" : "light");
}
+ const menuItems = [
+ {
+ title: "Help",
+ icon: ,
+ link: "https://docs.khoj.dev",
+ },
+ {
+ title: "Releases",
+ icon: ,
+ link: "https://github.com/khoj-ai/khoj/releases",
+ },
+ {
+ title: "Organization",
+ icon: ,
+ link: "https://khoj.dev/teams",
+ },
+ ]
+
return (
@@ -147,26 +165,18 @@ export default function FooterMenu({ sideBarIsOpen }: NavMenuProps) {
-
-
-
-
-
-
-
-
-
-
-
+ {
+ menuItems.map((menuItem, index) => (
+
+
+
+ {menuItem.icon}
+
{menuItem.title}
+
+
+
+ ))
+ }
{!userData ? (