Closed lvauvillier closed 7 years ago
Thanks for your review. I just push a new version. Eslint now raise an error due to the definition of MyOtherComponent. Tell me if you prefer adding a new rule, or a eslint-disable-line comment to catch this error.
@lvauvillier I pushed a commit to your branch that should fix the ESLint issue ;)
Thanks @lvauvillier 🎉
There was no possibility to bind the onAccept callback to a custom element to dismiss the banner.
This PR solves this allowing to set a function as children with a onAccept argument. This function must return a valid react element.