Closed GabrielBB closed 5 years ago
I could use the container
property and use my own component with an onClick
event, but then i would have to make that blue pretty design myself, it would make no sense for me to use this library in that case
It does get called, but not in the way you did it. onNotificationRemoval
is a prop, not an option you supply to addNotification
. And for using custom content, you don't need to make your own design, you just need to use existing classes for styling.
You can workaround a solution for this temporary, but as you shown in this example, it would be useful to have onNotificationRemoval
as an option tied to the notification. Will do it in 2.1.0
together with the other issue in progress
Fixed in 2.1.0
- see changelog/readme
@teodosii Great! Thanks
I want to call my function when user clicks the notification. I tried
onNotificationRemoval
but is not working. Please, if you know some way i can achieve this, let me know asap :/