Skip to content

Commit

Permalink
Web: People: fixed Paging tReady
Browse files Browse the repository at this point in the history
  • Loading branch information
gopienkonikita committed Nov 15, 2021
1 parent 5ed03e0 commit b72760c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import React, { useCallback, useMemo } from "react";
import { isMobile } from "react-device-detect";
import Paging from "@appserver/components/paging";
import { useTranslation } from "react-i18next";
import { withTranslation } from "react-i18next";
import Loaders from "@appserver/common/components/Loaders";
import { inject, observer } from "mobx-react";

const SectionPagingContent = ({
const PureSectionPagingContent = ({
fetchPeople,
filter,
setIsLoading,
selectedCount,
isLoaded,
t,
tReady,
}) => {
const { t } = useTranslation("Home");
const onNextClick = useCallback(
(e) => {
if (!filter.hasNext()) {
Expand Down Expand Up @@ -152,6 +152,8 @@ const SectionPagingContent = ({
);
};

const SectionPagingContent = withTranslation("Home")(PureSectionPagingContent);

export default inject(({ auth, peopleStore }) => {
const { isLoaded } = auth;
const { usersStore, filterStore, loadingStore } = peopleStore;
Expand Down

0 comments on commit b72760c

Please sign in to comment.