From e13d6145cb6a8880f808c403e13921c6e0a11480 Mon Sep 17 00:00:00 2001 From: Zetaphor Date: Fri, 16 Jun 2023 18:56:06 -0300 Subject: [PATCH] Remove extra div in post sidebar --- src/shared/components/community/sidebar.tsx | 64 +++++++++++---------- src/shared/components/post/post.tsx | 34 ++++++----- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index 5c8f46a..f4c7452 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -131,37 +131,39 @@ export class Sidebar extends Component { const myUSerInfo = UserService.Instance.myUserInfo; const { name, actor_id } = this.props.community_view.community; return ( -
-
-
- {this.communityTitle()} - {this.props.editable && this.adminButtons()} - {myUSerInfo && this.subscribe()} - {this.canPost && this.createPost()} - {myUSerInfo && this.blockCommunity()} - {!myUSerInfo && ( -
- - ### - -
- )} -
-
-
-
- {this.description()} - {this.badges()} - {this.mods()} -
-
-
+ ); } diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 1b10a98..25fd1b3 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -548,24 +548,22 @@ export class Post extends Component { const res = this.state.postRes; if (res.state === "success") { return ( - + ); } } -- 2.44.1