reactioncommerce/reaction-component-library

Add an onCheckoutButtonClick prop for the checkout button in the MiniCart component

Closed this issue ยท 4 comments

Type: minor

Describe the bug

There is no "onClick" prop for the checkout button in the mini cart. There is no way to attach an event to that button without providing your own component.

In the starter kit, I believe we have to override the component anyway because we have to have a button wrapped in a <Link>. But nevertheless, this would be a good thing to add at some point.

I was planning on using the Router.pushRoute, but I see what you mean. Going to add it anyway since its quick.

...since the mini-cart won't show up anyway in SSR mode since it requires JS to open.

๐ŸŽ‰ This issue has been resolved in version 0.22.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€