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