|
|
@@ -1,12 +1,12 @@
|
|
|
"use client"
|
|
|
|
|
|
import type React from "react"
|
|
|
-import { useState } from "react"
|
|
|
-import { Drawer } from "antd"
|
|
|
+import {useState} from "react"
|
|
|
+import {Drawer} from "antd"
|
|
|
import Image from "next/image"
|
|
|
import Link from "next/link"
|
|
|
-import { usePathname } from "next/navigation"
|
|
|
-import { MenuIcon, X } from "lucide-react"
|
|
|
+import {usePathname} from "next/navigation"
|
|
|
+import {MenuIcon, X} from "lucide-react"
|
|
|
|
|
|
const Navigation: React.FC = () => {
|
|
|
const pathname = usePathname()
|
|
|
@@ -20,7 +20,7 @@ const Navigation: React.FC = () => {
|
|
|
"/support": "support",
|
|
|
"/about": "about",
|
|
|
}
|
|
|
- const selectedKey = pathToKey[pathname] || "home"
|
|
|
+ const selectedKey = pathToKey[pathname] || ""
|
|
|
|
|
|
const menuItems = [
|
|
|
{ key: "home", label: "首页", href: "/" },
|