summaryrefslogtreecommitdiffstats
path: root/ui/src/components/comment-nodes.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-15 16:12:06 -0700
committerDessalines <tyhou13@gmx.com>2019-04-15 16:12:06 -0700
commite94885eb97b3240ed9cec7f97d0f405b2819e922 (patch)
treeb407f0b6ed9be27682e3767271e34933c947cb2a /ui/src/components/comment-nodes.tsx
parent8590a612f633fe6ba8f8b18379a8a822a3b3019b (diff)
Commiting before I lose everything. I'll do this properly in a merge
Diffstat (limited to 'ui/src/components/comment-nodes.tsx')
-rw-r--r--ui/src/components/comment-nodes.tsx11
1 files changed, 9 insertions, 2 deletions
diff --git a/ui/src/components/comment-nodes.tsx b/ui/src/components/comment-nodes.tsx
index 76d5c57e..19ba30c6 100644
--- a/ui/src/components/comment-nodes.tsx
+++ b/ui/src/components/comment-nodes.tsx
@@ -1,5 +1,5 @@
import { Component } from 'inferno';
-import { CommentNode as CommentNodeI } from '../interfaces';
+import { CommentNode as CommentNodeI, CommunityUser } from '../interfaces';
import { CommentNode } from './comment-node';
interface CommentNodesState {
@@ -7,8 +7,10 @@ interface CommentNodesState {
interface CommentNodesProps {
nodes: Array<CommentNodeI>;
+ moderators: Array<CommunityUser>;
noIndent?: boolean;
viewOnly?: boolean;
+ locked?: boolean;
}
export class CommentNodes extends Component<CommentNodesProps, CommentNodesState> {
@@ -21,10 +23,15 @@ export class CommentNodes extends Component<CommentNodesProps, CommentNodesState
return (
<div className="comments">
{this.props.nodes.map(node =>
- <CommentNode node={node} noIndent={this.props.noIndent} viewOnly={this.props.viewOnly}/>
+ <CommentNode node={node}
+ noIndent={this.props.noIndent}
+ viewOnly={this.props.viewOnly}
+ locked={this.props.locked}
+ moderators={this.props.moderators}/>
)}
</div>
)
}
+
}