From 26e97301a26b541685554339b73f976aaae48359 Mon Sep 17 00:00:00 2001 From: Joseph Chalabi Date: Tue, 24 Dec 2024 00:10:51 -0700 Subject: [PATCH] fix: use screen height for page sizes --- components/bank/components/historyBox.tsx | 2 +- .../groups/components/groupControls.tsx | 8 +- components/groups/components/myGroups.tsx | 73 +++++++++++++++---- hooks/useQueries.ts | 2 +- pages/bank.tsx | 64 ++++++++++++++-- 5 files changed, 122 insertions(+), 27 deletions(-) diff --git a/components/bank/components/historyBox.tsx b/components/bank/components/historyBox.tsx index d26124e..a91724f 100644 --- a/components/bank/components/historyBox.tsx +++ b/components/bank/components/historyBox.tsx @@ -173,7 +173,7 @@ export function HistoryBox({
{[...Array(skeletonGroupCount)].map((_, groupIndex) => (
-
+
{[...Array(skeletonTxCount)].map((_, txIndex) => (
void; @@ -47,7 +47,7 @@ type GroupProposalsProps = { skeletonTxCount: number; }; -export default function GroupProposals({ +export default function GroupControls({ policyAddress, groupName, onBack, @@ -69,7 +69,7 @@ export default function GroupProposals({ pageSize, skeletonGroupCount, skeletonTxCount, -}: GroupProposalsProps) { +}: GroupControlsProps) { const { proposals, isProposalsLoading, isProposalsError, refetchProposals } = useProposalsByPolicyAccount(policyAddress); @@ -275,7 +275,7 @@ export default function GroupProposals({
-
+