mirror of
https://github.com/wassname/talk.git
synced 2026-07-28 11:27:05 +08:00
Indent
This commit is contained in:
@@ -343,11 +343,11 @@ export default class Comment extends React.Component {
|
||||
} = this.props;
|
||||
|
||||
if (this.commentIsRejected(comment)) {
|
||||
return <CommentTombstone action="rejected" />;
|
||||
return <CommentTombstone action='reject' />;
|
||||
}
|
||||
|
||||
if (this.commentIsIgnored(comment)) {
|
||||
return <CommentTombstone action="ignored" />;
|
||||
return <CommentTombstone action='ignore' />;
|
||||
}
|
||||
|
||||
const view = this.getVisibileReplies();
|
||||
|
||||
@@ -8,12 +8,12 @@ class CommentTombstone extends React.Component {
|
||||
const {action} = this.props;
|
||||
|
||||
switch (action) {
|
||||
case 'ignored':
|
||||
return t('framework.comment_is_ignored')
|
||||
case 'rejected':
|
||||
return t('framework.comment_is_rejected')
|
||||
default :
|
||||
return t('framework.comment_is_hidden');
|
||||
case 'ignore':
|
||||
return t('framework.comment_is_ignored')
|
||||
case 'reject':
|
||||
return t('framework.comment_is_rejected')
|
||||
default :
|
||||
return t('framework.comment_is_hidden');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user