Skip to content

Commit 7a3fcfe

Browse files
committed
prettier
1 parent 427fc23 commit 7a3fcfe

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

website/components/ui/Button.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
import * as React from "react"
2-
import { Slot } from "@radix-ui/react-slot"
3-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from 'react'
2+
import { Slot } from '@radix-ui/react-slot'
3+
import { cva, type VariantProps } from 'class-variance-authority'
44

5-
import { cn } from "~/lib/utils"
5+
import { cn } from '~/lib/utils'
66

77
const buttonVariants = cva(
8-
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
8+
'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
99
{
1010
variants: {
1111
variant: {
12-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
12+
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
1313
destructive:
14-
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
14+
'bg-destructive text-destructive-foreground hover:bg-destructive/90',
1515
outline:
16-
"border border-input bg-background hover:bg-accent hover:text-accent-foreground",
16+
'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
1717
secondary:
18-
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
19-
ghost: "hover:bg-accent hover:text-accent-foreground",
20-
link: "text-primary underline-offset-4 hover:underline",
18+
'bg-secondary text-secondary-foreground hover:bg-secondary/80',
19+
ghost: 'hover:bg-accent hover:text-accent-foreground',
20+
link: 'text-primary underline-offset-4 hover:underline',
2121
},
2222
size: {
23-
default: "h-10 px-4 py-2",
24-
sm: "h-9 rounded-md px-3",
25-
lg: "h-11 rounded-md px-8",
26-
icon: "h-10 w-10",
23+
default: 'h-10 px-4 py-2',
24+
sm: 'h-9 rounded-md px-3',
25+
lg: 'h-11 rounded-md px-8',
26+
icon: 'h-10 w-10',
2727
},
2828
},
2929
defaultVariants: {
30-
variant: "default",
31-
size: "default",
30+
variant: 'default',
31+
size: 'default',
3232
},
3333
}
3434
)
@@ -41,7 +41,7 @@ export interface ButtonProps
4141

4242
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
4343
({ className, variant, size, asChild = false, ...props }, ref) => {
44-
const Comp = asChild ? Slot : "button"
44+
const Comp = asChild ? Slot : 'button'
4545
return (
4646
<Comp
4747
className={cn(buttonVariants({ variant, size, className }))}
@@ -51,6 +51,6 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
5151
)
5252
}
5353
)
54-
Button.displayName = "Button"
54+
Button.displayName = 'Button'
5555

5656
export { Button, buttonVariants }

website/styles/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
--ring: 240 4.9% 83.9%;
4949
}
5050
}
51-
51+
5252
@layer base {
5353
* {
5454
@apply border-border;
5555
}
5656
body {
5757
@apply bg-background text-foreground;
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)