From: Dessalines Date: Sun, 25 Aug 2019 17:42:10 +0000 (-0700) Subject: Refactoring chat sidebar. #237 X-Git-Url: http://these/git/readmes/%7B%60%24%7BarchiveTodayUrl%7D/static/%7BpictrsAvatarThumbnail%28user.avatar%29%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',