We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec6493 commit 7030a40Copy full SHA for 7030a40
resources/js/components/nav-user.tsx
@@ -56,7 +56,7 @@ function UserInfo({ user }: { user: UserType }) {
56
}
57
58
export function NavUser() {
59
- const { auth: { UserType } } = usePage().props
+ const { auth } = usePage().props
60
61
return (
62
<SidebarMenu>
@@ -68,7 +68,7 @@ export function NavUser() {
68
className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground"
69
>
70
<Avatar className="h-8 w-8 rounded-md">
71
- <AvatarImage src={UserType.avatar} alt={auth.user.name} />
+ <AvatarImage src={auth.user.avatar} alt={auth.user.name} />
72
<AvatarFallback className="rounded-md">
73
{getInitials(auth.user.name)}
74
</AvatarFallback>
0 commit comments