Closed steplerbox closed 8 years ago
Pass props to Notif in Notifs component: https://github.com/indexiatech/re-notif/blob/master/src/components/Notifs.js#L16 <Notif key={getter(notif, 'id')} message={getter(notif, 'message')} kind={getter(notif, 'kind')} componentClassName={componentClassName} CustomComponent={CustomComponent} onActionClick={onActionClick} actionLabel={actionLabel} />
Check onClick in Notif component: https://github.com/indexiatech/re-notif/blob/master/src/components/Notif.js#L16 if (this.props.onClick) {
How onClick can appear in Notif props?
yeah, I think it should be
if (this.props.onActionClick) { this.props.onActionClick();
Fixed by #19 - going to close this issue
Pass props to Notif in Notifs component: https://github.com/indexiatech/re-notif/blob/master/src/components/Notifs.js#L16 <Notif key={getter(notif, 'id')} message={getter(notif, 'message')} kind={getter(notif, 'kind')} componentClassName={componentClassName} CustomComponent={CustomComponent} onActionClick={onActionClick} actionLabel={actionLabel} />
Check onClick in Notif component: https://github.com/indexiatech/re-notif/blob/master/src/components/Notif.js#L16 if (this.props.onClick) {
How onClick can appear in Notif props?