Skip to content

Commit a2a34a3

Browse files
author
markusvannorlen
committed
added auth
1 parent c7222a5 commit a2a34a3

File tree

12 files changed

+1074
-855
lines changed

12 files changed

+1074
-855
lines changed

src/assets/js/components/nav-user.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { usePage } from '@inertiajs/react';
88
import { ChevronsUpDown } from 'lucide-react';
99

1010
export function NavUser() {
11-
const { auth } = usePage<SharedData>().props;
11+
const { auth, logout } = usePage<SharedData>().props;
1212
const { state } = useSidebar();
1313
const isMobile = useIsMobile();
1414

@@ -27,7 +27,7 @@ export function NavUser() {
2727
align="end"
2828
side={isMobile ? 'bottom' : state === 'collapsed' ? 'left' : 'bottom'}
2929
>
30-
<UserMenuContent user={auth.user} />
30+
<UserMenuContent user={auth.user} logout={logout} />
3131
</DropdownMenuContent>
3232
</DropdownMenu>
3333
</SidebarMenuItem>

0 commit comments

Comments
 (0)