Remove extra div in post sidebar

This commit is contained in:
Zetaphor 2023-06-16 18:56:06 -03:00
parent a03bee512a
commit e13d6145cb
2 changed files with 49 additions and 49 deletions

View file

@ -131,6 +131,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
const myUSerInfo = UserService.Instance.myUserInfo; const myUSerInfo = UserService.Instance.myUserInfo;
const { name, actor_id } = this.props.community_view.community; const { name, actor_id } = this.props.community_view.community;
return ( return (
<aside className="mb-3">
<div id="sidebarContainer"> <div id="sidebarContainer">
<section id="sidebarMain" className="card border-secondary mb-3"> <section id="sidebarMain" className="card border-secondary mb-3">
<div className="card-body"> <div className="card-body">
@ -162,6 +163,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
</div> </div>
</section> </section>
</div> </div>
</aside>
); );
} }

View file

@ -548,7 +548,6 @@ export class Post extends Component<any, PostState> {
const res = this.state.postRes; const res = this.state.postRes;
if (res.state === "success") { if (res.state === "success") {
return ( return (
<aside className="mb-3">
<Sidebar <Sidebar
community_view={res.data.community_view} community_view={res.data.community_view}
moderators={res.data.moderators} moderators={res.data.moderators}
@ -565,7 +564,6 @@ export class Post extends Component<any, PostState> {
onBlockCommunity={this.handleBlockCommunity} onBlockCommunity={this.handleBlockCommunity}
onEditCommunity={this.handleEditCommunity} onEditCommunity={this.handleEditCommunity}
/> />
</aside>
); );
} }
} }