Web: People: fixed Paging tReady
This commit is contained in:
parent
5ed03e0351
commit
b72760c789
@ -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()) {
|
||||
@ -152,6 +152,8 @@ const SectionPagingContent = ({
|
||||
);
|
||||
};
|
||||
|
||||
const SectionPagingContent = withTranslation("Home")(PureSectionPagingContent);
|
||||
|
||||
export default inject(({ auth, peopleStore }) => {
|
||||
const { isLoaded } = auth;
|
||||
const { usersStore, filterStore, loadingStore } = peopleStore;
|
||||
|
Loading…
Reference in New Issue
Block a user