From: Jay Sitter Date: Sat, 17 Jun 2023 19:32:49 +0000 (-0400) Subject: fix: Fix Trending sidebar card too X-Git-Url: http://these/git/readmes/%7Bpost.embed_video_url%7D?a=commitdiff_plain;h=c8758317f7ed08b05ec80597fd3df06e3618d514;p=lemmy-ui.git fix: Fix Trending sidebar card too --- diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index 23b0941..0acef49 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -1,3 +1,4 @@ +import classNames from "classnames"; import { NoOptionI18nKeys } from "i18next"; import { Component, linkEvent, MouseEventHandler } from "inferno"; import { T } from "inferno-i18next-dess"; @@ -448,7 +449,7 @@ export class Home extends Component { )} {showTrendingMobile && (
-
{this.trendingCommunities(true)}
+ {this.trendingCommunities(true)}
)} {showSubscribedMobile && ( @@ -472,19 +473,7 @@ export class Home extends Component { return (
-
- {this.trendingCommunities()} - {canCreateCommunity(this.state.siteRes) && ( - - )} - -
+ {this.trendingCommunities()}
{ case "success": { const trending = this.state.trendingCommunitiesRes.data.communities; return ( -
-
- - # - +
+
+
+ # - - -
-
    - {trending.map(cv => ( -
  • - -
  • - ))} -
+ + # + + +
+ +
+
    + {trending.map(cv => ( +
  • + +
  • + ))} +
+ {canCreateCommunity(this.state.siteRes) && ( + + )} + +
); }