Update AGENTS.md. Start fixing old weird errors
This commit is contained in:
@@ -42,7 +42,7 @@ const buttonVariants = cva(
|
||||
},
|
||||
);
|
||||
|
||||
function Button({
|
||||
const Button = ({
|
||||
className,
|
||||
variant = 'default',
|
||||
size = 'default',
|
||||
@@ -51,7 +51,7 @@ function Button({
|
||||
}: React.ComponentProps<'button'> &
|
||||
VariantProps<typeof buttonVariants> & {
|
||||
asChild?: boolean;
|
||||
}) {
|
||||
}) => {
|
||||
const Comp = asChild ? Slot.Root : 'button';
|
||||
|
||||
return (
|
||||
@@ -63,6 +63,6 @@ function Button({
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export { Button, buttonVariants };
|
||||
|
||||
Reference in New Issue
Block a user