From 46bbd805750fbf708ddc096d8b442f508fc55cd0 Mon Sep 17 00:00:00 2001 From: neocybereth Date: Fri, 13 Jun 2025 23:15:45 +1200 Subject: [PATCH] fix: update pagination on staking tables --- apps/namadillo/src/App/Staking/AllValidatorsTable.tsx | 2 +- apps/namadillo/src/App/Staking/IncrementBonding.tsx | 2 +- apps/namadillo/src/App/Staking/IncrementBondingTable.tsx | 2 +- apps/namadillo/src/App/Staking/ValidatorsTable.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/namadillo/src/App/Staking/AllValidatorsTable.tsx b/apps/namadillo/src/App/Staking/AllValidatorsTable.tsx index 498b78006b..21a9833822 100644 --- a/apps/namadillo/src/App/Staking/AllValidatorsTable.tsx +++ b/apps/namadillo/src/App/Staking/AllValidatorsTable.tsx @@ -25,7 +25,7 @@ type AllValidatorsProps = { }; export const AllValidatorsTable = ({ - resultsPerPage = 100, + resultsPerPage = 10, initialPage = 0, }: AllValidatorsProps): JSX.Element => { const validators = useAtomValue(allValidatorsAtom); diff --git a/apps/namadillo/src/App/Staking/IncrementBonding.tsx b/apps/namadillo/src/App/Staking/IncrementBonding.tsx index 7862c99afa..9dc7f55a08 100644 --- a/apps/namadillo/src/App/Staking/IncrementBonding.tsx +++ b/apps/namadillo/src/App/Staking/IncrementBonding.tsx @@ -44,7 +44,7 @@ const IncrementBonding = (): JSX.Element => { const { data: chainParameters } = useAtomValue(chainParametersAtom); const { data: account } = useAtomValue(defaultAccountAtom); const validators = useAtomValue(allValidatorsAtom); - const resultsPerPage = 100; + const resultsPerPage = 10; const { myValidators, diff --git a/apps/namadillo/src/App/Staking/IncrementBondingTable.tsx b/apps/namadillo/src/App/Staking/IncrementBondingTable.tsx index 7da97e4c23..dd9d9e5638 100644 --- a/apps/namadillo/src/App/Staking/IncrementBondingTable.tsx +++ b/apps/namadillo/src/App/Staking/IncrementBondingTable.tsx @@ -27,7 +27,7 @@ export const IncrementBondingTable = ({ stakedAmountByAddress, topValidatorsByRank, onChangeValidatorAmount, - resultsPerPage = 100, + resultsPerPage = 10, }: IncrementBondingTableProps): JSX.Element => { const { sortableColumns, sortedValidators } = useValidatorTableSorting({ validators: validators, diff --git a/apps/namadillo/src/App/Staking/ValidatorsTable.tsx b/apps/namadillo/src/App/Staking/ValidatorsTable.tsx index 789e10282b..68e3e94bfd 100644 --- a/apps/namadillo/src/App/Staking/ValidatorsTable.tsx +++ b/apps/namadillo/src/App/Staking/ValidatorsTable.tsx @@ -24,7 +24,7 @@ export const ValidatorsTable = ({ headers, renderRow, validatorList, - resultsPerPage = 100, + resultsPerPage = 10, initialPage = 0, tableClassName, }: ValidatorsTableProps): JSX.Element => {