From c8758317f7ed08b05ec80597fd3df06e3618d514 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sat, 17 Jun 2023 15:32:49 -0400 Subject: [PATCH] fix: Fix Trending sidebar card too --- src/shared/components/home/home.tsx | 68 +++++++++++++++-------------- 1 file changed, 36 insertions(+), 32 deletions(-) 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) && ( + + )} + +
); } -- 2.44.1