mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-06-01 14:29:18 +00:00
fix(ui): merge Toggle className with cn() outside toggleVariants
CVA should not receive className; merge with toggleVariants() output. Made-with: Cursor
This commit is contained in:
parent
9c4766cece
commit
e20284be49
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ const Toggle = React.forwardRef<
|
|||
>(({ className, variant, size, ...props }, ref) => (
|
||||
<TogglePrimitive.Root
|
||||
ref={ref}
|
||||
className={cn(toggleVariants({ variant, size, className }))}
|
||||
className={cn(toggleVariants({ variant, size }), className)}
|
||||
{...props}
|
||||
/>
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue