Update Notifications component

pull/1887/head
Andrew Watkins 2017-08-15 12:00:55 -07:00
parent c22004b13a
commit 2686fc7b31
1 changed files with 3 additions and 3 deletions

View File

@ -41,15 +41,15 @@ class Notifications extends Component {
) )
} }
renderDismiss(type) { handleDismiss = type => () => this.props.dismissNotification(type)
const {dismissNotification} = this.props
renderDismiss(type) {
return ( return (
<button <button
className="close" className="close"
data-dismiss="alert" data-dismiss="alert"
aria-label="Close" aria-label="Close"
onClick={() => dismissNotification(type)} onClick={this.handleDismiss(type)}
> >
<span className="icon remove" /> <span className="icon remove" />
</button> </button>