mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 13:11:23 +00:00
Update Button.tsx
This commit is contained in:
parent
e367fd97ab
commit
f525d246b8
@ -27,12 +27,12 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
|
|||||||
variant = 'flat',
|
variant = 'flat',
|
||||||
children,
|
children,
|
||||||
active,
|
active,
|
||||||
onClick,
|
|
||||||
width,
|
width,
|
||||||
Component = 'button',
|
Component = 'button',
|
||||||
loading = false,
|
loading = false,
|
||||||
disabled = false,
|
disabled = false,
|
||||||
style = {},
|
style = {},
|
||||||
|
...rest
|
||||||
} = props
|
} = props
|
||||||
const ref = useRef<typeof Component>(null)
|
const ref = useRef<typeof Component>(null)
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
|
|||||||
width,
|
width,
|
||||||
...style,
|
...style,
|
||||||
}}
|
}}
|
||||||
onClick={onClick}
|
{...rest}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
{loading && (
|
{loading && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user