From ed106732503434866bee2e73cb82d036a7d93060 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 25 Aug 2019 10:42:10 -0700 Subject: Refactoring chat sidebar. #237 --- ui/src/components/post.tsx | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'ui/src/components/post.tsx') diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx index a6df4105..91f8f4db 100644 --- a/ui/src/components/post.tsx +++ b/ui/src/components/post.tsx @@ -119,7 +119,7 @@ export class Post extends Component { {this.state.loading ?
:
-
+
{ {this.sortRadios()} {this.commentsTree()}
-
- {this.state.comments.length > 0 && this.newComments()} -
-
+
{this.sidebar()} + {this.state.comments.length > 0 && this.newComments()}
} @@ -175,25 +173,26 @@ export class Post extends Component { newComments() { return ( -
-
#
- - {this.state.comments.map(comment => - - )} +
+
+
#
+ {this.state.comments.map(comment => + + )} +
) } sidebar() { return ( -
+