diff options
author | Dessalines <tyhou13@gmx.com> | 2020-02-09 11:45:46 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-02-09 11:45:46 -0500 |
commit | be539e335339e1db9704ee55563f16986df72cf4 (patch) | |
tree | 4c243a756f70ade67f395608bd968e7b79e0fb14 /ui/src/components/comment-node.tsx | |
parent | d422da3f4b2de504741200255471838813a5b443 (diff) | |
parent | fd8814677ec81eff5358c102b6b424ec1c23c2fb (diff) |
Merge branch 'tech_debt' into dev
Diffstat (limited to 'ui/src/components/comment-node.tsx')
-rw-r--r-- | ui/src/components/comment-node.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index a67b1c35..0e511063 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -15,6 +15,8 @@ import { TransferCommunityForm, TransferSiteForm, BanType, + CommentSortType, + SortType, } from '../interfaces'; import { WebSocketService, UserService } from '../services'; import { @@ -61,6 +63,8 @@ interface CommentNodeProps { // TODO is this necessary, can't I get it from the node itself? postCreatorId?: number; showCommunity?: boolean; + sort?: CommentSortType; + sortType?: SortType; } export class CommentNode extends Component<CommentNodeProps, CommentNodeState> { @@ -630,6 +634,8 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> { moderators={this.props.moderators} admins={this.props.admins} postCreatorId={this.props.postCreatorId} + sort={this.props.sort} + sortType={this.props.sortType} /> )} {/* A collapsed clearfix */} |