Fix/front end helpers 1 (#346)
* Updating translations. * Adding some descriptions to listing types. #341
This commit is contained in:
parent
d964bd3d1f
commit
79ce0e864a
3 changed files with 15 additions and 3 deletions
|
@ -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} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue