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) {
const {dismissNotification} = this.props
handleDismiss = type => () => this.props.dismissNotification(type)
renderDismiss(type) {
return (
<button
className="close"
data-dismiss="alert"
aria-label="Close"
onClick={() => dismissNotification(type)}
onClick={this.handleDismiss(type)}
>
<span className="icon remove" />
</button>