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 +++++++++++++++++------------------ ui/src/translations/en.ts | 1 + 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'ui') 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 ( -
+
communities.', chat: 'Chat', + recent_comments: 'Recent Comments', no_results: 'No results.', setup: 'Setup', lemmy_instance_setup: 'Lemmy Instance Setup', -- cgit v1.2.3