From 3564c6c379ff7be50b26dea9240080656bc30316 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sat, 17 Jun 2023 17:01:14 -0400 Subject: [PATCH] fix: Fix some small style issues --- src/shared/components/home/home.tsx | 25 +++++++++------------ src/shared/components/home/site-sidebar.tsx | 5 +---- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index 0acef492..483d8ccb 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -1,4 +1,3 @@ -import classNames from "classnames"; import { NoOptionI18nKeys } from "i18next"; import { Component, linkEvent, MouseEventHandler } from "inferno"; import { T } from "inferno-i18next-dess"; @@ -506,11 +505,7 @@ export class Home extends Component { case "success": { const trending = this.state.trendingCommunitiesRes.data.communities; return ( -
+ <>
@@ -522,13 +517,15 @@ export class Home extends Component {
-
    - {trending.map(cv => ( -
  • - -
  • - ))} -
+ {trending.length > 0 && ( +
    + {trending.map(cv => ( +
  • + +
  • + ))} +
+ )} {canCreateCommunity(this.state.siteRes) && ( { translationKey="explore_communities" />
-
+ ); } } diff --git a/src/shared/components/home/site-sidebar.tsx b/src/shared/components/home/site-sidebar.tsx index f4081737..cc587bfb 100644 --- a/src/shared/components/home/site-sidebar.tsx +++ b/src/shared/components/home/site-sidebar.tsx @@ -31,10 +31,7 @@ export class SiteSidebar extends Component { render() { return (
-
+