mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
fix block test
This commit is contained in:
1 parent
8a8e451de1
commit
142f256641
1 file changed
+2
-2
@@ -151,7 +151,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
({ 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<HTMLButtonElement, ButtonProps>(
|
||||
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) ? (
|
||||
|
||||
Reference in new issue
Block a user