Remove unessecary binds

This commit is contained in:
Chi Vinh Le
2017-06-21 21:36:27 +07:00
parent 74fff2f1ac
commit 57ecba6f33
@@ -5,16 +5,16 @@ import classnames from 'classnames';
const upArrow = <span className={classnames(styles.chevron, styles.up)}></span>;
const downArrow = <span className={classnames(styles.chevron, styles.down)}></span>;
export default class Toggleable extends React.Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.close = this.close.bind(this);
this.state = {
isOpen: false
};
}
toggle() {
toggle = () => {
this.setState({isOpen: !this.state.isOpen});
}