mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Linting and Indenting
This commit is contained in:
@@ -210,7 +210,7 @@ export default class Comment extends React.Component {
|
||||
}
|
||||
|
||||
commentIsRejected(comment) {
|
||||
return comment.status === "REJECTED";
|
||||
return comment.status === 'REJECTED';
|
||||
}
|
||||
|
||||
commentIsIgnored(comment) {
|
||||
|
||||
@@ -9,9 +9,9 @@ class CommentTombstone extends React.Component {
|
||||
|
||||
switch (action) {
|
||||
case 'ignore':
|
||||
return t('framework.comment_is_ignored')
|
||||
return t('framework.comment_is_ignored');
|
||||
case 'reject':
|
||||
return t('framework.comment_is_rejected')
|
||||
return t('framework.comment_is_rejected');
|
||||
default :
|
||||
return t('framework.comment_is_hidden');
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class ApproveCommentActionContainer extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
return <ApproveCommentAction comment={this.props.comment} approveComment={this.approveComment}/>
|
||||
return <ApproveCommentAction comment={this.props.comment} approveComment={this.approveComment}/>;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import React from 'react';
|
||||
import {gql, compose} from 'react-apollo';
|
||||
import {connect, excludeIf, withFragments} from 'plugin-api/beta/client/hocs';
|
||||
import ModerationActions from '../components/ModerationActions';
|
||||
import {can} from 'plugin-api/beta/client/services';
|
||||
import ModerationActions from '../components/ModerationActions';
|
||||
import {connect, excludeIf, withFragments} from 'plugin-api/beta/client/hocs';
|
||||
|
||||
const mapStateToProps = ({auth}) => ({
|
||||
user: auth.user
|
||||
|
||||
@@ -26,7 +26,7 @@ class RejectCommentActionContainer extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
return <RejectCommentAction rejectComment={this.rejectComment}/>
|
||||
return <RejectCommentAction rejectComment={this.rejectComment}/>;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user