Skip to content

Commit 7030a40

Browse files
committed
Fixing the nav user
1 parent 8ec6493 commit 7030a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/components/nav-user.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function UserInfo({ user }: { user: UserType }) {
5656
}
5757

5858
export function NavUser() {
59-
const { auth: { UserType } } = usePage().props
59+
const { auth } = usePage().props
6060

6161
return (
6262
<SidebarMenu>
@@ -68,7 +68,7 @@ export function NavUser() {
6868
className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground"
6969
>
7070
<Avatar className="h-8 w-8 rounded-md">
71-
<AvatarImage src={UserType.avatar} alt={auth.user.name} />
71+
<AvatarImage src={auth.user.avatar} alt={auth.user.name} />
7272
<AvatarFallback className="rounded-md">
7373
{getInitials(auth.user.name)}
7474
</AvatarFallback>

0 commit comments

Comments
 (0)