优化控制台user

This commit is contained in:
2025-05-13 11:35:03 +08:00
parent 96e8d0e090
commit b6d9a518e8
5 changed files with 86 additions and 57 deletions

View File

@@ -21,7 +21,6 @@ import {
SidebarMenuItem,
SidebarRail,
} from "@/components/ui/sidebar"
import { useRouter } from "next/navigation"
import Link from "next/link"
// This is sample data.
const data = {
@@ -105,7 +104,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
<NavMain items={data.navMain} />
</SidebarContent>
<SidebarFooter>
<NavUser user={data.user} />
<NavUser />
</SidebarFooter>
<SidebarRail />
</Sidebar>