chore: update dashboard ui
This commit is contained in:
@@ -36,11 +36,15 @@ export interface ButtonProps
|
||||
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
||||
VariantProps<typeof buttonVariants> {
|
||||
asChild?: boolean;
|
||||
as?: React.ElementType;
|
||||
}
|
||||
|
||||
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
({ className, variant, size, asChild = false, ...props }, ref) => {
|
||||
const Comp = asChild ? Slot : "button";
|
||||
(
|
||||
{ className, variant, size, asChild = false, as = "button", ...props },
|
||||
ref
|
||||
) => {
|
||||
const Comp = asChild ? Slot : as;
|
||||
return (
|
||||
<Comp
|
||||
className={cn(buttonVariants({ variant, size, className }))}
|
||||
|
||||
Reference in New Issue
Block a user