summaryrefslogtreecommitdiffstats
path: root/ui/src/components/comment-nodes.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-10-18 17:20:27 -0700
committerDessalines <tyhou13@gmx.com>2019-10-18 17:20:27 -0700
commit4e5561283392d2ab1545cabb4455a8ffc490f86b (patch)
treea4ee9cc096826dc32faf3675212c7f95f1b3ea5e /ui/src/components/comment-nodes.tsx
parent82ea5ae9186e5a8e631c87a61077e16713eb87a4 (diff)
Running prettier on code.
- #305 , #309
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>
- )
+ );
}
-
}
-