From 142f2566412fbb4b18bb8e604b002cdafd86f3de Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Tue, 13 Jun 2023 18:05:07 +0800 Subject: [PATCH] fix block test --- packages/ui/src/components/Button/Button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/Button/Button.tsx b/packages/ui/src/components/Button/Button.tsx index ee79aeb9dbf..bb4d0eaa138 100644 --- a/packages/ui/src/components/Button/Button.tsx +++ b/packages/ui/src/components/Button/Button.tsx @@ -151,7 +151,7 @@ const Button = React.forwardRef( ({ asChild = false, size = 'tiny', type = 'primary', children, ...props }, ref) => { const Comp = asChild ? Slot : 'button' - const { className, disabled, loading, icon, iconLeft, iconRight } = props + const { className, disabled, loading, icon, iconLeft, iconRight, block } = props const showIcon = loading || icon @@ -163,7 +163,7 @@ const Button = React.forwardRef( ref={ref} type={props.htmlType} {...props} - className={cn(buttonVariants({ type, size, disabled }), className)} + className={cn(buttonVariants({ type, size, disabled, block }), className)} > {asChild ? ( React.isValidElement(children) ? (