refactor(dashboard): extract RoleGuard and unify mobile nav with Button
This commit is contained in:
@@ -17,12 +17,12 @@ import { Button } from "@/components/ui/button"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { useAuthStore } from "@/store/auth"
|
||||
|
||||
const playerLinks = [
|
||||
export const playerLinks = [
|
||||
{ href: "/dashboard", label: "概览", icon: LayoutDashboard },
|
||||
{ href: "/dashboard/services", label: "服务管理", icon: ListOrdered },
|
||||
]
|
||||
|
||||
const ownerLinks = [
|
||||
export const ownerLinks = [
|
||||
{ href: "/dashboard", label: "概览", icon: LayoutDashboard },
|
||||
{ href: "/dashboard/services", label: "服务管理", icon: ListOrdered },
|
||||
{ href: "/dashboard/shop", label: "店铺管理", icon: Store },
|
||||
|
||||
Reference in New Issue
Block a user