mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
only show search if logged in. update agents icon
This commit is contained in:
@@ -22,7 +22,7 @@ import {
|
|||||||
DropdownMenuSeparator,
|
DropdownMenuSeparator,
|
||||||
DropdownMenuTrigger,
|
DropdownMenuTrigger,
|
||||||
} from "@/components/ui/dropdown-menu";
|
} from "@/components/ui/dropdown-menu";
|
||||||
import { Moon, Sun, UserCircle, User, Robot, MagnifyingGlass, Question, GearFine, ArrowRight } from '@phosphor-icons/react';
|
import { Moon, Sun, UserCircle, User, Robot, MagnifyingGlass, Question, GearFine, ArrowRight, UsersFour } from '@phosphor-icons/react';
|
||||||
|
|
||||||
export default function NavMenu() {
|
export default function NavMenu() {
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@ export default function NavMenu() {
|
|||||||
<DropdownMenuItem>
|
<DropdownMenuItem>
|
||||||
<Link href="/agents" className="no-underline w-full">
|
<Link href="/agents" className="no-underline w-full">
|
||||||
<div className="flex flex-rows">
|
<div className="flex flex-rows">
|
||||||
<User className="w-6 h-6" />
|
<UsersFour className="w-6 h-6" />
|
||||||
<p className="ml-3 font-semibold">Agents</p>
|
<p className="ml-3 font-semibold">Agents</p>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
@@ -115,6 +115,8 @@ export default function NavMenu() {
|
|||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
|
{
|
||||||
|
userData &&
|
||||||
<DropdownMenuItem>
|
<DropdownMenuItem>
|
||||||
<Link href="/search" className="no-underline w-full">
|
<Link href="/search" className="no-underline w-full">
|
||||||
<div className="flex flex-rows">
|
<div className="flex flex-rows">
|
||||||
@@ -123,6 +125,7 @@ export default function NavMenu() {
|
|||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
|
}
|
||||||
<>
|
<>
|
||||||
<DropdownMenuSeparator />
|
<DropdownMenuSeparator />
|
||||||
{userData &&
|
{userData &&
|
||||||
@@ -193,7 +196,7 @@ export default function NavMenu() {
|
|||||||
<MenubarItem>
|
<MenubarItem>
|
||||||
<Link href="/agents" className="no-underline w-full">
|
<Link href="/agents" className="no-underline w-full">
|
||||||
<div className="flex flex-rows">
|
<div className="flex flex-rows">
|
||||||
<User className="w-6 h-6" />
|
<UsersFour className="w-6 h-6" />
|
||||||
<p className="ml-3 font-semibold">Agents</p>
|
<p className="ml-3 font-semibold">Agents</p>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
@@ -206,6 +209,8 @@ export default function NavMenu() {
|
|||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
</MenubarItem>
|
</MenubarItem>
|
||||||
|
{
|
||||||
|
userData &&
|
||||||
<MenubarItem>
|
<MenubarItem>
|
||||||
<Link href="/search" className="no-underline w-full">
|
<Link href="/search" className="no-underline w-full">
|
||||||
<div className="flex flex-rows">
|
<div className="flex flex-rows">
|
||||||
@@ -214,6 +219,7 @@ export default function NavMenu() {
|
|||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
</MenubarItem>
|
</MenubarItem>
|
||||||
|
}
|
||||||
<>
|
<>
|
||||||
<MenubarSeparator className="dark:bg-white height-[2px] bg-black" />
|
<MenubarSeparator className="dark:bg-white height-[2px] bg-black" />
|
||||||
<MenubarItem>
|
<MenubarItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user