const { name, actor_id } = this.props.community_view.community;
return (
<div id="sidebarContainer">
- <div id="sidebarMain" className="card border-secondary mb-3">
+ <section id="sidebarMain" className="card border-secondary mb-3">
<div className="card-body">
{this.communityTitle()}
{this.props.editable && this.adminButtons()}
</div>
)}
</div>
- </div>
- <div id="sidebarInfo" className="card border-secondary mb-3">
+ </section>
+ <section id="sidebarInfo" className="card border-secondary mb-3">
<div className="card-body">
{this.description()}
{this.badges()}
{this.mods()}
</div>
- </div>
+ </section>
</div>
);
}
} = this.state;
return (
- <div>
- <div id="sidebarContainer">
- <div id="sidebarMain" className="card border-secondary mb-3">
- <div className="card-body">
- {this.trendingCommunities()}
- {canCreateCommunity(this.state.siteRes) && (
- <LinkButton
- path="/create_community"
- translationKey="create_a_community"
- />
- )}
+ <div id="sidebarContainer">
+ <section id="sidebarMain" className="card border-secondary mb-3">
+ <div className="card-body">
+ {this.trendingCommunities()}
+ {canCreateCommunity(this.state.siteRes) && (
<LinkButton
- path="/communities"
- translationKey="explore_communities"
+ path="/create_community"
+ translationKey="create_a_community"
/>
- </div>
+ )}
+ <LinkButton
+ path="/communities"
+ translationKey="explore_communities"
+ />
</div>
- <SiteSidebar
- site={site}
- admins={admins}
- counts={counts}
- online={online}
- showLocal={showLocal(this.isoData)}
- />
- {this.hasFollows && (
- <div id="sidebarSubscribed" className="card border-secondary mb-3">
- <div className="card-body">{this.subscribedCommunities}</div>
- </div>
- )}
- </div>
+ </section>
+ <SiteSidebar
+ site={site}
+ admins={admins}
+ counts={counts}
+ online={online}
+ showLocal={showLocal(this.isoData)}
+ />
+ {this.hasFollows && (
+ <section
+ id="sidebarSubscribed"
+ className="card border-secondary mb-3"
+ >
+ <div className="card-body">{this.subscribedCommunities}</div>
+ </section>
+ )}
</div>
);
}
render() {
return (
- <div id="sidebarInfo" className="card border-secondary mb-3">
+ <section id="sidebarInfo" className="card border-secondary mb-3">
<div className="card-body">
<div>
<div className="mb-2">{this.siteName()}</div>
)}
</div>
</div>
- </div>
+ </section>
);
}