]> Untitled Git - lemmy-ui.git/commitdiff
Fix/front end helpers 1 (#346)
authorDessalines <dessalines@users.noreply.github.com>
Mon, 19 Jul 2021 23:12:08 +0000 (19:12 -0400)
committerGitHub <noreply@github.com>
Mon, 19 Jul 2021 23:12:08 +0000 (19:12 -0400)
* Updating translations.

* Adding some descriptions to listing types. #341

lemmy-translations
src/shared/components/common/listing-type-select.tsx
src/shared/components/home/home.tsx

index e34e6fc90f5702683870ab548ebe98a29c70abb3..a13fc72a3dbabdeb405196b1c51ddbb4b9157212 160000 (submodule)
@@ -1 +1 @@
-Subproject commit e34e6fc90f5702683870ab548ebe98a29c70abb3
+Subproject commit a13fc72a3dbabdeb405196b1c51ddbb4b9157212
index 23c5bbfd3651378c175f377a8be08dff7ec30244..1493f64998685c922a28ea6b6431bd767917c9cd 100644 (file)
@@ -40,6 +40,7 @@ export class ListingTypeSelect extends Component<
     return (
       <div class="btn-group btn-group-toggle flex-wrap mb-2">
         <label
+          title={i18n.t("subscribed_description")}
           className={`btn btn-outline-secondary 
             ${this.state.type_ == ListingType.Subscribed && "active"}
             ${
@@ -61,6 +62,7 @@ export class ListingTypeSelect extends Component<
         </label>
         {this.props.showLocal && (
           <label
+            title={i18n.t("local_description")}
             className={`pointer btn btn-outline-secondary ${
               this.state.type_ == ListingType.Local && "active"
             }`}
@@ -76,6 +78,7 @@ export class ListingTypeSelect extends Component<
           </label>
         )}
         <label
+          title={i18n.t("all_description")}
           className={`pointer btn btn-outline-secondary ${
             (this.state.type_ == ListingType.All && "active") ||
             (!this.props.showLocal &&
index a351484b361f7bf7a0e1d6c2d4500525d09c3ac6..3a74901416aeb8067b21fc0a675ca4337e7f5c1d 100644 (file)
@@ -373,6 +373,7 @@ export class Home extends Component<any, HomeState> {
               <div class="card-body">
                 {this.trendingCommunities()}
                 {this.createCommunityButton()}
+                {this.exploreCommunitiesButton()}
               </div>
             </div>
 
@@ -394,12 +395,20 @@ export class Home extends Component<any, HomeState> {
 
   createCommunityButton() {
     return (
-      <Link className="btn btn-secondary btn-block" to="/create_community">
+      <Link className="mt-2 btn btn-secondary btn-block" to="/create_community">
         {i18n.t("create_a_community")}
       </Link>
     );
   }
 
+  exploreCommunitiesButton() {
+    return (
+      <Link className="btn btn-secondary btn-block" to="/communities">
+        {i18n.t("explore_communities")}
+      </Link>
+    );
+  }
+
   trendingCommunities() {
     return (
       <div>
@@ -411,7 +420,7 @@ export class Home extends Component<any, HomeState> {
             </Link>
           </T>
         </h5>
-        <ul class="list-inline">
+        <ul class="list-inline mb-0">
           {this.state.trendingCommunities.map(cv => (
             <li class="list-inline-item d-inline-block">
               <CommunityLink community={cv.community} />