)}
{showTrendingMobile && (
<div className="card border-secondary mb-3">
- {this.trendingCommunities(true)}
+ {this.trendingCommunities}
</div>
)}
{showSubscribedMobile && (
return (
<div id="sidebarContainer">
<section id="sidebarMain" className="card border-secondary mb-3">
- {this.trendingCommunities()}
+ {this.trendingCommunities}
</section>
<SiteSidebar
site={site}
);
}
- trendingCommunities(isMobile = false) {
+ trendingCommunities() {
switch (this.state.trendingCommunitiesRes?.state) {
case "loading":
return (