Update
This commit is contained in:
@@ -2,8 +2,9 @@ import { NavFooter } from '@/components/nav-footer';
|
||||
import { NavMain } from '@/components/nav-main';
|
||||
import { NavUser } from '@/components/nav-user';
|
||||
import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from '@/components/ui/sidebar';
|
||||
import { SharedData, type NavItem } from '@/types';
|
||||
import { Link, usePage } from '@inertiajs/react';
|
||||
import { type NavItem } from '@/types';
|
||||
import { Link } from '@inertiajs/react';
|
||||
import useUserStore from '@/stores/UserStore';
|
||||
import { LayoutGrid, UserCog } from 'lucide-react';
|
||||
import AppLogo from './app-logo';
|
||||
|
||||
@@ -42,7 +43,7 @@ const footerNavItems: NavItem[] = [
|
||||
];
|
||||
|
||||
export function AppSidebar() {
|
||||
const { auth } = usePage<SharedData>().props;
|
||||
const { user } = useUserStore();
|
||||
|
||||
return (
|
||||
<Sidebar collapsible="icon" variant="inset">
|
||||
|
||||
Reference in New Issue
Block a user