Skip to content

Commit da4080d

Browse files
no avatar fallback
1 parent 230cb0c commit da4080d

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

components/nav-user.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@ export function NavUser({
254254
>
255255
<Avatar className="h-8 w-8 rounded-lg grayscale">
256256
<AvatarImage src={user.image || ""} alt={user.name || ""} />
257-
<AvatarFallback className="rounded-lg">
257+
{/* <AvatarFallback className="rounded-lg">
258258
{user.name?.charAt(0).toUpperCase() ||
259259
user.email?.charAt(0).toUpperCase() ||
260260
"U"}
261-
</AvatarFallback>
261+
</AvatarFallback> */}
262262
</Avatar>
263263
<div className="grid flex-1 text-left text-sm leading-tight">
264264
<span className="truncate font-medium">{getProfileDisplayName(user)}</span>
@@ -279,11 +279,11 @@ export function NavUser({
279279
<div className="flex items-center gap-2 px-1 py-1.5 text-left text-sm">
280280
<Avatar className="h-8 w-8 rounded-lg">
281281
<AvatarImage src={user.image || ""} alt={user.name || ""} />
282-
<AvatarFallback className="rounded-lg">
282+
{/* <AvatarFallback className="rounded-lg">
283283
{user.name?.charAt(0).toUpperCase() ||
284284
user.email?.charAt(0).toUpperCase() ||
285285
"U"}
286-
</AvatarFallback>
286+
</AvatarFallback> */}
287287
</Avatar>
288288
<div className="grid flex-1 text-left text-sm leading-tight">
289289
<span className="truncate font-medium">
@@ -350,11 +350,11 @@ export function NavUser({
350350
<div className="flex items-center space-x-4">
351351
<Avatar className="h-16 w-16">
352352
<AvatarImage src={profileImage} alt={fullName || "User"} />
353-
<AvatarFallback className="text-lg">
353+
{/* <AvatarFallback className="text-lg">
354354
{fullName?.charAt(0).toUpperCase() ||
355355
user.email?.charAt(0).toUpperCase() ||
356356
"U"}
357-
</AvatarFallback>
357+
</AvatarFallback> */}
358358
</Avatar>
359359
<Button
360360
variant="outline"

components/ui/avatar.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ function AvatarImage({
3434
)
3535
}
3636

37-
function AvatarFallback({
38-
className,
39-
...props
40-
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {
41-
return (
42-
<AvatarPrimitive.Fallback
43-
data-slot="avatar-fallback"
44-
className={cn(
45-
"bg-muted flex size-full items-center justify-center rounded-full",
46-
className
47-
)}
48-
{...props}
49-
/>
50-
)
51-
}
37+
// function AvatarFallback({
38+
// className,
39+
// ...props
40+
// }: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {
41+
// return (
42+
// <AvatarPrimitive.Fallback
43+
// data-slot="avatar-fallback"
44+
// className={cn(
45+
// "bg-muted flex size-full items-center justify-center rounded-full",
46+
// className
47+
// )}
48+
// {...props}
49+
// />
50+
// )
51+
// }
5252

53-
export { Avatar, AvatarImage, AvatarFallback }
53+
export { Avatar, AvatarImage }

0 commit comments

Comments
 (0)