Update Notifications component
parent
c22004b13a
commit
2686fc7b31
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue