Resolve linter issues

This commit is contained in:
Chi Vinh Le
2018-06-05 04:28:54 +02:00
parent d9a1d739dc
commit ccff6ed63b
148 changed files with 1171 additions and 265 deletions
@@ -15,7 +15,10 @@ class BanUserActionContainer extends React.Component {
};
render() {
const { root: { me }, comment } = this.props;
const {
root: { me },
comment,
} = this.props;
return me.id !== comment.user.id ? (
<BanUserAction onBanUser={this.onBanUser} comment={this.props.comment} />
) : null;
@@ -30,6 +33,11 @@ const mapDispatchToProps = dispatch =>
dispatch
);
const enhance = compose(connect(null, mapDispatchToProps));
const enhance = compose(
connect(
null,
mapDispatchToProps
)
);
export default enhance(BanUserActionContainer);
@@ -70,7 +70,10 @@ const mapDispatchToProps = dispatch =>
);
const enhance = compose(
connect(mapStateToProps, mapDispatchToProps),
connect(
mapStateToProps,
mapDispatchToProps
),
withSetCommentStatus,
withBanUser
);
@@ -68,7 +68,10 @@ const mapDispatchToProps = dispatch =>
);
const enhance = compose(
connect(mapStateToProps, mapDispatchToProps),
connect(
mapStateToProps,
mapDispatchToProps
),
withFragments({
root: gql`
fragment TalkModerationActions_root on RootQuery {