summaryrefslogtreecommitdiffstats
path: root/ui/src/components/comment-nodes.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/comment-nodes.tsx')
-rw-r--r--ui/src/components/comment-nodes.tsx32
1 files changed, 18 insertions, 14 deletions
diff --git a/ui/src/components/comment-nodes.tsx b/ui/src/components/comment-nodes.tsx
index 1e61c2f0..18faf1ac 100644
--- a/ui/src/components/comment-nodes.tsx
+++ b/ui/src/components/comment-nodes.tsx
@@ -1,9 +1,12 @@
import { Component } from 'inferno';
-import { CommentNode as CommentNodeI, CommunityUser, UserView } from '../interfaces';
+import {
+ CommentNode as CommentNodeI,
+ CommunityUser,
+ UserView,
+} from '../interfaces';
import { CommentNode } from './comment-node';
-interface CommentNodesState {
-}
+interface CommentNodesState {}
interface CommentNodesProps {
nodes: Array<CommentNodeI>;
@@ -16,8 +19,10 @@ interface CommentNodesProps {
markable?: boolean;
}
-export class CommentNodes extends Component<CommentNodesProps, CommentNodesState> {
-
+export class CommentNodes extends Component<
+ CommentNodesProps,
+ CommentNodesState
+> {
constructor(props: any, context: any) {
super(props, context);
}
@@ -25,20 +30,19 @@ export class CommentNodes extends Component<CommentNodesProps, CommentNodesState
render() {
return (
<div className="comments">
- {this.props.nodes.map(node =>
- <CommentNode node={node}
- noIndent={this.props.noIndent}
- viewOnly={this.props.viewOnly}
- locked={this.props.locked}
+ {this.props.nodes.map(node => (
+ <CommentNode
+ node={node}
+ noIndent={this.props.noIndent}
+ viewOnly={this.props.viewOnly}
+ locked={this.props.locked}
moderators={this.props.moderators}
admins={this.props.admins}
postCreatorId={this.props.postCreatorId}
markable={this.props.markable}
/>
- )}
+ ))}
</div>
- )
+ );
}
-
}
-