indexiatech / re-notif

Redux & React based Notifications center.
http://indexiatech.github.io/re-notif
BSD 3-Clause "New" or "Revised" License
148 stars 45 forks source link

Give CustomComponent access to notification data #51

Closed rick446 closed 7 years ago

rick446 commented 7 years ago

In commit 0bfe722055313bcbf4ece99cb2c6f8443f412b54, the rendering of CustomComponent was moved from within Notif.js to Notifs.js. This refactoring led to CustomComponents now being passed the props of the Notifs object, rather than the Notif object. That means that things like the id, message, etc. are no longer accessible inside the CustomComponent

This commit ensures that the same props that would be passed to a Notif are passed to a CustomComponent.

kylecesmat commented 7 years ago

Thanks for fixing this! It looks like an oversight during the refactor.

kylecesmat commented 7 years ago

@rick446 this has been released in 3.1.0