Update AGENTS.md. Start fixing old weird errors
This commit is contained in:
@@ -27,13 +27,13 @@ const badgeVariants = cva(
|
||||
},
|
||||
);
|
||||
|
||||
function Badge({
|
||||
const Badge = ({
|
||||
className,
|
||||
variant = 'default',
|
||||
asChild = false,
|
||||
...props
|
||||
}: React.ComponentProps<'span'> &
|
||||
VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
|
||||
VariantProps<typeof badgeVariants> & { asChild?: boolean }) => {
|
||||
const Comp = asChild ? Slot.Root : 'span';
|
||||
|
||||
return (
|
||||
@@ -44,6 +44,6 @@ function Badge({
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export { Badge, badgeVariants };
|
||||
|
||||
Reference in New Issue
Block a user