删除多个完成报告文件,优化项目结构以提升可维护性。
This commit is contained in:
@@ -11,13 +11,13 @@ export function BottomNav() {
|
||||
if (pathname.startsWith("/admin")) return null
|
||||
|
||||
const navItems = [
|
||||
{ href: "/", icon: Home, label: "首页", id: "home" },
|
||||
{ href: "/match", icon: Users, label: "找伙伴", id: "match" },
|
||||
{ href: "/my", icon: User, label: "我的", id: "my" },
|
||||
{ href: "/view", icon: Home, label: "首页", id: "home" },
|
||||
{ href: "/view/match", icon: Users, label: "找伙伴", id: "match" },
|
||||
{ href: "/view/my", icon: User, label: "我的", id: "my" },
|
||||
]
|
||||
|
||||
const isActive = (href: string) => {
|
||||
if (href === "/") return pathname === "/"
|
||||
if (href === "/view") return pathname === "/view"
|
||||
return pathname.startsWith(href)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user