Skip to content

Commit 85b639a

Browse files
committed
Lint
1 parent 0adb5a3 commit 85b639a

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/components/ui/alert.tsx

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

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

66
const alertVariants = cva(
7-
"not-content relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
7+
'not-content relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',
88
{
99
variants: {
1010
variant: {
11-
default: "bg-card text-card-foreground",
11+
default: 'bg-card text-card-foreground',
1212
destructive:
13-
"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
13+
'text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90',
1414
},
1515
},
1616
defaultVariants: {
17-
variant: "default",
17+
variant: 'default',
1818
},
19-
}
20-
)
19+
},
20+
);
2121

2222
function Alert({
2323
className,
2424
variant,
2525
...props
26-
}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
26+
}: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>) {
2727
return (
2828
<div
2929
data-slot="alert"
3030
role="alert"
3131
className={cn(alertVariants({ variant }), className)}
3232
{...props}
3333
/>
34-
)
34+
);
3535
}
3636

37-
function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
37+
function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) {
3838
return (
3939
<div
4040
data-slot="alert-title"
4141
className={cn(
42-
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
43-
className
42+
'col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight',
43+
className,
4444
)}
4545
{...props}
4646
/>
47-
)
47+
);
4848
}
4949

5050
function AlertDescription({
5151
className,
5252
...props
53-
}: React.ComponentProps<"div">) {
53+
}: React.ComponentProps<'div'>) {
5454
return (
5555
<div
5656
data-slot="alert-description"
5757
className={cn(
58-
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
59-
className
58+
'text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed',
59+
className,
6060
)}
6161
{...props}
6262
/>
63-
)
63+
);
6464
}
6565

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

0 commit comments

Comments
 (0)