diff --git a/src/shared/components/common/paginator.tsx b/src/shared/components/common/paginator.tsx index ed0ed211f..b1b452b61 100644 --- a/src/shared/components/common/paginator.tsx +++ b/src/shared/components/common/paginator.tsx @@ -4,6 +4,7 @@ import { I18NextService } from "../../services"; interface PaginatorProps { page: number; onChange(val: number): any; + nextDisabled: boolean; } export class Paginator extends Component { @@ -23,6 +24,7 @@ export class Paginator extends Component { diff --git a/src/shared/components/community/communities.tsx b/src/shared/components/community/communities.tsx index 4d6a107fd..75038f569 100644 --- a/src/shared/components/community/communities.tsx +++ b/src/shared/components/community/communities.tsx @@ -32,7 +32,7 @@ import { Paginator } from "../common/paginator"; import { SortSelect } from "../common/sort-select"; import { CommunityLink } from "./community-link"; -const communityLimit = 50; +import { communityLimit } from "../../config"; type CommunitiesData = RouteDataResponse<{ listCommunitiesResponse: ListCommunitiesResponse; @@ -221,7 +221,14 @@ export class Communities extends Component { - + + this.state.listCommunitiesResponse.data.communities.length + } + /> ); } diff --git a/src/shared/components/community/community.tsx b/src/shared/components/community/community.tsx index b0787ecd9..02d88dfe5 100644 --- a/src/shared/components/community/community.tsx +++ b/src/shared/components/community/community.tsx @@ -344,7 +344,14 @@ export class Community extends Component< {this.selects(res)} {this.listings(res)} - + this.state.postsRes.data.posts.length + } + />