]> Untitled Git - lemmy-ui.git/commitdiff
Merge branch 'main' into feature/add-ids-and-classes
authorSleeplessOne1917 <abias1122@gmail.com>
Fri, 16 Jun 2023 21:17:48 +0000 (21:17 +0000)
committerGitHub <noreply@github.com>
Fri, 16 Jun 2023 21:17:48 +0000 (21:17 +0000)
1  2 
src/shared/components/community/sidebar.tsx
src/shared/components/home/home.tsx
src/shared/components/home/site-sidebar.tsx
src/shared/components/post/post.tsx

index c7780a9e557635fdcfffa95166a70e5eb2b25cec,215075d8fbf3d87da9937bb18b0fa473d56d96ba..870eb76cfe4017f0674bc576517ef00210445c47
@@@ -422,37 -419,35 +419,36 @@@ export class Home extends Component<any
      } = this.state;
  
      return (
 -      <div>
 -        <div>
 -          <div className="card border-secondary mb-3">
 -            <div className="card-body">
 -              {this.trendingCommunities()}
 -              {canCreateCommunity(this.state.siteRes) && (
 -                <LinkButton
 -                  path="/create_community"
 -                  translationKey="create_a_community"
 -                />
 -              )}
 +      <div id="sidebarContainer">
 +        <section id="sidebarMain" className="card border-secondary mb-3">
 +          <div className="card-body">
 +            {this.trendingCommunities()}
 +            {canCreateCommunity(this.state.siteRes) && (
                <LinkButton
 -                path="/communities"
 -                translationKey="explore_communities"
 +                path="/create_community"
 +                translationKey="create_a_community"
                />
 -            </div>
 +            )}
 +            <LinkButton
 +              path="/communities"
 +              translationKey="explore_communities"
 +            />
            </div>
 -          <SiteSidebar
 -            site={site}
 -            admins={admins}
 -            counts={counts}
 -            showLocal={showLocal(this.isoData)}
 -          />
 -          {this.hasFollows && (
 -            <div className="card border-secondary mb-3">
 -              <div className="card-body">{this.subscribedCommunities}</div>
 -            </div>
 -          )}
 -        </div>
 +        </section>
 +        <SiteSidebar
 +          site={site}
 +          admins={admins}
 +          counts={counts}
-           online={online}
 +          showLocal={showLocal(this.isoData)}
 +        />
 +        {this.hasFollows && (
 +          <section
 +            id="sidebarSubscribed"
 +            className="card border-secondary mb-3"
 +          >
 +            <div className="card-body">{this.subscribedCommunities}</div>
 +          </section>
 +        )}
        </div>
      );
    }
Simple merge