Remove unnecessary constructors (#3280)

This commit is contained in:
Yamagishi Kazutoshi
2017-05-25 00:55:16 +09:00
committed by Eugen Rochko
parent 8e4d1cba00
commit 1ec7c87001
3 changed files with 15 additions and 37 deletions

View File

@ -27,22 +27,15 @@ class Account extends ImmutablePureComponent {
intl: PropTypes.object.isRequired,
};
constructor (props, context) {
super(props, context);
this.handleFollow = this.handleFollow.bind(this);
this.handleBlock = this.handleBlock.bind(this);
this.handleMute = this.handleMute.bind(this);
}
handleFollow () {
handleFollow = () => {
this.props.onFollow(this.props.account);
}
handleBlock () {
handleBlock = () => {
this.props.onBlock(this.props.account);
}
handleMute () {
handleMute = () => {
this.props.onMute(this.props.account);
}