From: Dessalines Date: Sun, 25 Aug 2019 17:42:10 +0000 (-0700) Subject: Refactoring chat sidebar. #237 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7B%60data:application/static/%7B%60https:/%7BmarkdownHelpUrl%7D?a=commitdiff_plain;h=ed106732503434866bee2e73cb82d036a7d93060;p=lemmy.git Refactoring chat sidebar. #237 --- 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',