mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Resolve linter issues
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user