diff --git a/components/header.tsx b/components/header.tsx index ff62f5e..5349fc0 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -6,7 +6,6 @@ import { LogOut, Menu, MessageSquare, - Search, Settings, ShoppingBag, User, @@ -27,7 +26,6 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" -import { Input } from "@/components/ui/input" import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from "@/components/ui/sheet" import type { UserRole } from "@/lib/types" import { cn } from "@/lib/utils" @@ -54,7 +52,6 @@ export function Header() { currentRole === "consumer" ? [ { href: "/", label: "发现" }, - { href: "/search", label: "找陪玩" }, { href: "/community", label: "社区" }, { href: "/chat", label: "消息" }, ] @@ -80,13 +77,6 @@ export function Header() { (state) => state.notifications.filter((notification) => !notification.read).length, ) - const handleSearch = (e: React.FormEvent) => { - e.preventDefault() - const formData = new FormData(e.currentTarget) - const q = formData.get("q") as string - if (q.trim()) router.push(`/search?q=${encodeURIComponent(q.trim())}`) - } - const profileHref = currentRole === "player" ? user @@ -126,14 +116,6 @@ export function Header() { ))} - -
-
- - -
-
-
{isAuthenticated ? ( <> @@ -254,13 +236,6 @@ export function Header() {
-
-
- - -
-
- {isAuthenticated && (