diff --git a/.eslintrc.json b/.eslintrc.json index 071a369..c5fbd95 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -31,7 +31,7 @@ }, "settings": { "tailwindcss": { - "callees": ["cn"], + "callees": ["cn", "cva"], "config": "./tailwind.config.js" }, "next": { diff --git a/components/ui/button.tsx b/components/ui/button.tsx index d7964cd..d06b3e6 100644 --- a/components/ui/button.tsx +++ b/components/ui/button.tsx @@ -4,7 +4,7 @@ import { cva, VariantProps } from "class-variance-authority"; import { cn } from "@/lib/style"; export const buttonVariants = cva( - "inline-flex items-center justify-center transition-colors disabled:opacity-50 disabled:pointer-events-none", + "inline-flex items-center justify-center transition-colors disabled:pointer-events-none disabled:opacity-50", { variants: { variant: { @@ -13,7 +13,7 @@ export const buttonVariants = cva( ghost: "hover:bg-accent", }, size: { - default: "h-9 rounded-md py-2 px-3", + default: "h-9 rounded-md px-3 py-2", }, }, defaultVariants: {