mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 13:11:23 +00:00
add on click to button, fixes clicks
add onClick={onClick} to `<Component/>` in button component.
This commit is contained in:
parent
bbcf63b892
commit
0e552cc4e3
@ -48,6 +48,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Component
|
<Component
|
||||||
|
onClick={onClick}
|
||||||
aria-pressed={active}
|
aria-pressed={active}
|
||||||
data-variant={variant}
|
data-variant={variant}
|
||||||
ref={mergeRefs([ref, buttonRef])}
|
ref={mergeRefs([ref, buttonRef])}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user