Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 1x 43x 43x | import { QKEY_ACQUIRER_MANAGE_MONEY_TRANSACTIONS_LIST } from "@constants/queryKeys";
import { PortalRootContainerV2 } from "components/Layout/LayoutV2";
import { PaginationMethodType } from "@components/VirtualList/api";
import {
TRANSACTION_PATHS,
useListManageMoneyTransactionsV2,
} from "../hooks/useListManageMoneyTransactionsV2";
import ManageMoneyTable from "../ManageMoneyTable";
import { MANAGE_MONEY_TABLE_TYPES } from "@constants/constants";
const PAGINATION_METHOD: PaginationMethodType = "cursor";
function GiveManageMoneyPage() {
const {
hasFilters,
handleResetFilters,
isLoading,
allRows,
page,
setPage,
setPageDispatcher,
isFetching,
totalRows,
nextCursor,
isFetchingNextPage,
} = useListManageMoneyTransactionsV2({
path: TRANSACTION_PATHS.BASIC,
queryKey: QKEY_ACQUIRER_MANAGE_MONEY_TRANSACTIONS_LIST,
paginationMethod: PAGINATION_METHOD,
sortReduxKey: QKEY_ACQUIRER_MANAGE_MONEY_TRANSACTIONS_LIST,
});
return (
<PortalRootContainerV2 data-testid="manage-money-page">
<ManageMoneyTable
type={MANAGE_MONEY_TABLE_TYPES.ACQUIRER_PROVIDER}
allRows={allRows}
isLoading={isLoading}
isFetching={isFetching}
isFetchingNextPage={isFetchingNextPage}
totalRows={totalRows}
hasFilters={hasFilters}
handleResetFilters={handleResetFilters}
page={page}
setPageDispatcher={setPageDispatcher}
setPage={setPage}
queryKey={QKEY_ACQUIRER_MANAGE_MONEY_TRANSACTIONS_LIST}
paginationMethod={PAGINATION_METHOD}
enabledInfiniteScroll
nextCursor={nextCursor}
/>
</PortalRootContainerV2>
);
}
export default GiveManageMoneyPage;
|