Skip to content

Commit 67cdab2

Browse files
committed
Apply biome fixes
1 parent f0ca121 commit 67cdab2

3 files changed

Lines changed: 9 additions & 28 deletions

File tree

‎docs/cli.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"uiLibrary": "radix-ui",
1212
"framework": "next",
1313
"commands": {}
14-
}
14+
}

‎docs/src/components/ui/accordion.tsx‎

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,28 @@
22

33
import * as Primitive from '@radix-ui/react-accordion';
44
import { ChevronRight } from 'lucide-react';
5-
import { type ComponentProps } from 'react';
5+
import type { ComponentProps } from 'react';
6+
67
import { cn } from '../../lib/cn';
78

89
export function Accordion({ className, ...props }: ComponentProps<typeof Primitive.Root>) {
910
return (
1011
<Primitive.Root
11-
className={cn(
12-
'divide-y divide-fd-border overflow-hidden rounded-lg border bg-fd-card',
13-
className,
14-
)}
12+
className={cn('divide-y divide-fd-border overflow-hidden rounded-lg border bg-fd-card', className)}
1513
{...props}
1614
/>
1715
);
1816
}
1917

20-
export function AccordionItem({
21-
className,
22-
children,
23-
...props
24-
}: ComponentProps<typeof Primitive.Item>) {
18+
export function AccordionItem({ className, children, ...props }: ComponentProps<typeof Primitive.Item>) {
2519
return (
2620
<Primitive.Item className={cn('scroll-m-24', className)} {...props}>
2721
{children}
2822
</Primitive.Item>
2923
);
3024
}
3125

32-
export function AccordionHeader({
33-
className,
34-
children,
35-
...props
36-
}: ComponentProps<typeof Primitive.Header>) {
26+
export function AccordionHeader({ className, children, ...props }: ComponentProps<typeof Primitive.Header>) {
3727
return (
3828
<Primitive.Header
3929
className={cn(
@@ -47,11 +37,7 @@ export function AccordionHeader({
4737
);
4838
}
4939

50-
export function AccordionTrigger({
51-
className,
52-
children,
53-
...props
54-
}: ComponentProps<typeof Primitive.Trigger>) {
40+
export function AccordionTrigger({ className, children, ...props }: ComponentProps<typeof Primitive.Trigger>) {
5541
return (
5642
<Primitive.Trigger
5743
className={cn(
@@ -66,11 +52,7 @@ export function AccordionTrigger({
6652
);
6753
}
6854

69-
export function AccordionContent({
70-
className,
71-
children,
72-
...props
73-
}: ComponentProps<typeof Primitive.Content>) {
55+
export function AccordionContent({ className, children, ...props }: ComponentProps<typeof Primitive.Content>) {
7456
return (
7557
<Primitive.Content
7658
className={cn(

‎docs/src/components/ui/button.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ const variants = {
55
'bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground',
66
outline: 'border hover:bg-fd-accent hover:text-fd-accent-foreground',
77
ghost: 'hover:bg-fd-accent hover:text-fd-accent-foreground',
8-
secondary:
9-
'border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground',
8+
secondary: 'border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground',
109
} as const;
1110

1211
export const buttonVariants = cva(

0 commit comments

Comments
 (0)