diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx index b9f9c8b2f..0a982a847 100644 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@ -6,7 +6,7 @@ import { WebSocketService } from '../services'; import { PostListings } from './post-listings'; import { Sidebar } from './sidebar'; import { msgOp, routeSortTypeToEnum, fetchLimit } from '../utils'; -import { T } from 'inferno-i18next'; +import { T, i18n } from 'inferno-i18next'; interface State { community: CommunityI; @@ -134,7 +134,7 @@ export class Community extends Component { - + diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index a21be2504..326318116 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -134,25 +134,30 @@ export class Main extends Component {
{!this.state.loading &&
- {this.trendingCommunities()} - {UserService.Instance.user && this.state.subscribedCommunities.length > 0 && -
-
- ## -
-
    - {this.state.subscribedCommunities.map(community => -
  • {community.community_name}
  • - )} -
+
+
+ {this.trendingCommunities()} + {UserService.Instance.user && this.state.subscribedCommunities.length > 0 && +
+
+ ## +
+
    + {this.state.subscribedCommunities.map(community => +
  • {community.community_name}
  • + )} +
+
+ } + + # +
- } - - # - - {this.sidebar()}
+ {this.sidebar()} + {this.landing()} +
}
) @@ -175,15 +180,16 @@ export class Main extends Component { sidebar() { return ( -
- {!this.state.showEditSite ? - this.siteInfo() : - - } - {this.landing()} +
+
+ {!this.state.showEditSite ? + this.siteInfo() : + + } +
) } @@ -208,17 +214,17 @@ export class Main extends Component { }
    -
  • +
  • #
  • -
  • +
  • #
  • -
  • +
  • #
  • - + #
  • @@ -235,7 +241,6 @@ export class Main extends Component {

    -
    }
    @@ -244,17 +249,19 @@ export class Main extends Component { landing() { return ( -
    -
    - # - # - Lemmybeta -
    -

    - ###

    #

    #

    #

    #### -
    -

    +
    +
    +
    + # + # + Lemmybeta +
    +

    + ###

    #

    #

    #

    #### +
    +

    +
    ) } @@ -275,7 +282,7 @@ export class Main extends Component { selects() { return ( -
    +