Skip to content

Commit 61e77df

Browse files
committed
Run prettier fixes
1 parent 13f5384 commit 61e77df

8 files changed

Lines changed: 248 additions & 240 deletions

File tree

src/components/ui/alert.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
import * as React from "react"
2-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from 'react';
2+
import { cva, type VariantProps } from 'class-variance-authority';
33

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

66
const alertVariants = cva(
7-
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
7+
'relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground',
88
{
99
variants: {
1010
variant: {
11-
default: "bg-background text-foreground",
11+
default: 'bg-background text-foreground',
1212
destructive:
13-
"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
13+
'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',
1414
},
1515
},
1616
defaultVariants: {
17-
variant: "default",
17+
variant: 'default',
1818
},
19-
}
20-
)
19+
},
20+
);
2121

2222
const Alert = React.forwardRef<
2323
HTMLDivElement,
@@ -29,31 +29,31 @@ const Alert = React.forwardRef<
2929
className={cn(alertVariants({ variant }), className)}
3030
{...props}
3131
/>
32-
))
33-
Alert.displayName = "Alert"
32+
));
33+
Alert.displayName = 'Alert';
3434

3535
const AlertTitle = React.forwardRef<
3636
HTMLParagraphElement,
3737
React.HTMLAttributes<HTMLHeadingElement>
3838
>(({ className, ...props }, ref) => (
3939
<h5
4040
ref={ref}
41-
className={cn("mb-1 font-medium leading-none tracking-tight", className)}
41+
className={cn('mb-1 font-medium leading-none tracking-tight', className)}
4242
{...props}
4343
/>
44-
))
45-
AlertTitle.displayName = "AlertTitle"
44+
));
45+
AlertTitle.displayName = 'AlertTitle';
4646

4747
const AlertDescription = React.forwardRef<
4848
HTMLParagraphElement,
4949
React.HTMLAttributes<HTMLParagraphElement>
5050
>(({ className, ...props }, ref) => (
5151
<div
5252
ref={ref}
53-
className={cn("text-sm [&_p]:leading-relaxed", className)}
53+
className={cn('text-sm [&_p]:leading-relaxed', className)}
5454
{...props}
5555
/>
56-
))
57-
AlertDescription.displayName = "AlertDescription"
56+
));
57+
AlertDescription.displayName = 'AlertDescription';
5858

59-
export { Alert, AlertTitle, AlertDescription }
59+
export { Alert, AlertTitle, AlertDescription };

src/components/ui/card.tsx

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as React from "react"
1+
import * as React from 'react';
22

3-
import { cn } from "@/lib/utils"
3+
import { cn } from '@/lib/utils';
44

55
const Card = React.forwardRef<
66
HTMLDivElement,
@@ -9,25 +9,25 @@ const Card = React.forwardRef<
99
<div
1010
ref={ref}
1111
className={cn(
12-
"rounded-lg border bg-card text-card-foreground shadow-sm",
13-
className
12+
'rounded-lg border bg-card text-card-foreground shadow-sm',
13+
className,
1414
)}
1515
{...props}
1616
/>
17-
))
18-
Card.displayName = "Card"
17+
));
18+
Card.displayName = 'Card';
1919

2020
const CardHeader = React.forwardRef<
2121
HTMLDivElement,
2222
React.HTMLAttributes<HTMLDivElement>
2323
>(({ className, ...props }, ref) => (
2424
<div
2525
ref={ref}
26-
className={cn("flex flex-col space-y-1.5 p-6", className)}
26+
className={cn('flex flex-col space-y-1.5 p-6', className)}
2727
{...props}
2828
/>
29-
))
30-
CardHeader.displayName = "CardHeader"
29+
));
30+
CardHeader.displayName = 'CardHeader';
3131

3232
const CardTitle = React.forwardRef<
3333
HTMLParagraphElement,
@@ -36,44 +36,51 @@ const CardTitle = React.forwardRef<
3636
<h3
3737
ref={ref}
3838
className={cn(
39-
"text-2xl font-semibold leading-none tracking-tight",
40-
className
39+
'text-2xl font-semibold leading-none tracking-tight',
40+
className,
4141
)}
4242
{...props}
4343
/>
44-
))
45-
CardTitle.displayName = "CardTitle"
44+
));
45+
CardTitle.displayName = 'CardTitle';
4646

4747
const CardDescription = React.forwardRef<
4848
HTMLParagraphElement,
4949
React.HTMLAttributes<HTMLParagraphElement>
5050
>(({ className, ...props }, ref) => (
5151
<p
5252
ref={ref}
53-
className={cn("text-sm text-muted-foreground", className)}
53+
className={cn('text-sm text-muted-foreground', className)}
5454
{...props}
5555
/>
56-
))
57-
CardDescription.displayName = "CardDescription"
56+
));
57+
CardDescription.displayName = 'CardDescription';
5858

5959
const CardContent = React.forwardRef<
6060
HTMLDivElement,
6161
React.HTMLAttributes<HTMLDivElement>
6262
>(({ className, ...props }, ref) => (
63-
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
64-
))
65-
CardContent.displayName = "CardContent"
63+
<div ref={ref} className={cn('p-6 pt-0', className)} {...props} />
64+
));
65+
CardContent.displayName = 'CardContent';
6666

6767
const CardFooter = React.forwardRef<
6868
HTMLDivElement,
6969
React.HTMLAttributes<HTMLDivElement>
7070
>(({ className, ...props }, ref) => (
7171
<div
7272
ref={ref}
73-
className={cn("flex items-center p-6 pt-0", className)}
73+
className={cn('flex items-center p-6 pt-0', className)}
7474
{...props}
7575
/>
76-
))
77-
CardFooter.displayName = "CardFooter"
76+
));
77+
CardFooter.displayName = 'CardFooter';
7878

79-
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
79+
export {
80+
Card,
81+
CardHeader,
82+
CardFooter,
83+
CardTitle,
84+
CardDescription,
85+
CardContent,
86+
};

0 commit comments

Comments
 (0)