diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-07 22:19:02 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-07 22:19:02 -0700 |
commit | 49bf16e7d451388d894f93a994f3bf18571f9594 (patch) | |
tree | 1802bf775a0dd97503670c38ceb13d9aa78d95b6 /ui/src/components/comment-nodes.tsx | |
parent | a61516439406b7884e19d9ae8a1875c728bbe628 (diff) |
Adding user details / overview page.
- Fixes #19
Diffstat (limited to 'ui/src/components/comment-nodes.tsx')
-rw-r--r-- | ui/src/components/comment-nodes.tsx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ui/src/components/comment-nodes.tsx b/ui/src/components/comment-nodes.tsx new file mode 100644 index 00000000..76d5c57e --- /dev/null +++ b/ui/src/components/comment-nodes.tsx @@ -0,0 +1,30 @@ +import { Component } from 'inferno'; +import { CommentNode as CommentNodeI } from '../interfaces'; +import { CommentNode } from './comment-node'; + +interface CommentNodesState { +} + +interface CommentNodesProps { + nodes: Array<CommentNodeI>; + noIndent?: boolean; + viewOnly?: boolean; +} + +export class CommentNodes extends Component<CommentNodesProps, CommentNodesState> { + + constructor(props: any, context: any) { + super(props, context); + } + + render() { + return ( + <div className="comments"> + {this.props.nodes.map(node => + <CommentNode node={node} noIndent={this.props.noIndent} viewOnly={this.props.viewOnly}/> + )} + </div> + ) + } +} + |