mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-23 15:05:51 +00:00
fix: Remove unused var
This commit is contained in:
parent
0d35d9a8d2
commit
ffaa3c4fc5
|
@ -448,7 +448,7 @@ export class Home extends Component<any, HomeState> {
|
|||
)}
|
||||
{showTrendingMobile && (
|
||||
<div className="card border-secondary mb-3">
|
||||
{this.trendingCommunities(true)}
|
||||
{this.trendingCommunities}
|
||||
</div>
|
||||
)}
|
||||
{showSubscribedMobile && (
|
||||
|
@ -472,7 +472,7 @@ export class Home extends Component<any, HomeState> {
|
|||
return (
|
||||
<div id="sidebarContainer">
|
||||
<section id="sidebarMain" className="card border-secondary mb-3">
|
||||
{this.trendingCommunities()}
|
||||
{this.trendingCommunities}
|
||||
</section>
|
||||
<SiteSidebar
|
||||
site={site}
|
||||
|
@ -494,7 +494,7 @@ export class Home extends Component<any, HomeState> {
|
|||
);
|
||||
}
|
||||
|
||||
trendingCommunities(isMobile = false) {
|
||||
trendingCommunities() {
|
||||
switch (this.state.trendingCommunitiesRes?.state) {
|
||||
case "loading":
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue