Skip to content

Commit 7b7532b

Browse files
committed
Format
1 parent 10e666f commit 7b7532b

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed
Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,38 @@
1-
import * as React from "react"
2-
import * as AvatarPrimitive from "@radix-ui/react-avatar"
1+
import * as React from "react";
2+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
33

4-
import { cn } from "@/lib/utils"
4+
import { cn } from "@/lib/utils";
55

66
const Avatar = React.forwardRef<
77
React.ElementRef<typeof AvatarPrimitive.Root>,
88
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
99
>(({ className, ...props }, ref) => (
1010
<AvatarPrimitive.Root
1111
ref={ref}
12-
className={cn(
13-
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
14-
className
15-
)}
12+
className={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)}
1613
{...props}
1714
/>
18-
))
19-
Avatar.displayName = AvatarPrimitive.Root.displayName
15+
));
16+
Avatar.displayName = AvatarPrimitive.Root.displayName;
2017

2118
const AvatarImage = React.forwardRef<
2219
React.ElementRef<typeof AvatarPrimitive.Image>,
2320
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
2421
>(({ className, ...props }, ref) => (
25-
<AvatarPrimitive.Image
26-
ref={ref}
27-
className={cn("aspect-square h-full w-full", className)}
28-
{...props}
29-
/>
30-
))
31-
AvatarImage.displayName = AvatarPrimitive.Image.displayName
22+
<AvatarPrimitive.Image ref={ref} className={cn("aspect-square h-full w-full", className)} {...props} />
23+
));
24+
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
3225

3326
const AvatarFallback = React.forwardRef<
3427
React.ElementRef<typeof AvatarPrimitive.Fallback>,
3528
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
3629
>(({ className, ...props }, ref) => (
3730
<AvatarPrimitive.Fallback
3831
ref={ref}
39-
className={cn(
40-
"flex h-full w-full items-center justify-center rounded-full bg-muted",
41-
className
42-
)}
32+
className={cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)}
4333
{...props}
4434
/>
45-
))
46-
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName
35+
));
36+
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
4737

48-
export { Avatar, AvatarImage, AvatarFallback }
38+
export { Avatar, AvatarImage, AvatarFallback };

0 commit comments

Comments
 (0)