Tincre / promo-button

One button to rule them all. Gain marketing supa powers with a few lines of code.
https://tincre.com
Mozilla Public License 2.0
2 stars 0 forks source link

Feature/fix button options overwriting bug #204

Closed thinkjrs closed 8 months ago

thinkjrs commented 8 months ago

This closes #203 by fixing the order of the call to Object.merge in the utils.ts::getOptions function.

It also refactors the use of this in the main button by extracting that infra into a React hook.


github-actions[bot] commented 8 months ago

size-limit report 📦

Path Size
dist/promo-button.cjs.production.min.js 49.19 KB (+0.2% 🔺)
dist/promo-button.esm.js 51.96 KB (+0.13% 🔺)