Remove not needed click handler in snackbar

old
Javi Velasco 2015-11-12 19:00:28 +01:00
parent da004e9f46
commit 846699ad22
1 changed files with 1 additions and 5 deletions

View File

@ -15,10 +15,6 @@ class Snackbar extends React.Component {
type: React.PropTypes.string
};
handleClick = (event) => {
this.props.onClick(event, this);
};
componentDidUpdate () {
if (this.props.active && this.props.timeout) {
setTimeout(() => {
@ -34,7 +30,7 @@ class Snackbar extends React.Component {
className={style.button}
kind='flat'
label={this.props.action}
onClick={this.props.onClick ? this.handleClick : null}
onClick={this.props.onClick}
/>
);
}