mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 05:01:22 +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 (
|
||||
<Component
|
||||
onClick={onClick}
|
||||
aria-pressed={active}
|
||||
data-variant={variant}
|
||||
ref={mergeRefs([ref, buttonRef])}
|
||||
|
Loading…
x
Reference in New Issue
Block a user