From a39a5d5cfa9dfdf2b325212de2b33842e92225e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Thu, 17 Apr 2025 16:14:37 +0200 Subject: [PATCH] fix: remove vp that is refreshing every 20s from pdf --- govtool/frontend/src/pages/ProposalDiscussion.tsx | 8 +------- govtool/frontend/src/types/@intersect.mbo.d.ts | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/govtool/frontend/src/pages/ProposalDiscussion.tsx b/govtool/frontend/src/pages/ProposalDiscussion.tsx index 396b6eee8..bbc0e8efe 100644 --- a/govtool/frontend/src/pages/ProposalDiscussion.tsx +++ b/govtool/frontend/src/pages/ProposalDiscussion.tsx @@ -11,11 +11,7 @@ import { import { useValidateMutation } from "@/hooks/mutations"; import { useScreenDimension } from "@/hooks/useScreenDimension"; import { Footer, TopNav } from "@/components/organisms"; -import { - useGetAdaHolderVotingPowerQuery, - useGetDRepVotingPowerList, - useGetVoterInfo, -} from "@/hooks"; +import { useGetDRepVotingPowerList, useGetVoterInfo } from "@/hooks"; const ProposalDiscussion = React.lazy( () => import("@intersect.mbo/pdf-ui/cjs"), @@ -30,7 +26,6 @@ export const ProposalDiscussionPillar = () => { const { createGovernanceActionJsonLD, createHash } = useGovernanceActions(); const { fetchDRepVotingPowerList } = useGetDRepVotingPowerList(); const { username, setUsername } = useProposalDiscussion(); - const { votingPower } = useGetAdaHolderVotingPowerQuery(context.stakeKey); const snackbarContext = useSnackbar(); return ( @@ -84,7 +79,6 @@ export const ProposalDiscussionPillar = () => { username={username} setUsername={setUsername} epochParams={epochParams} - votingPower={votingPower} {...snackbarContext} /> diff --git a/govtool/frontend/src/types/@intersect.mbo.d.ts b/govtool/frontend/src/types/@intersect.mbo.d.ts index 140fcd55b..5db4fed7b 100644 --- a/govtool/frontend/src/types/@intersect.mbo.d.ts +++ b/govtool/frontend/src/types/@intersect.mbo.d.ts @@ -30,7 +30,6 @@ declare module "@intersect.mbo/pdf-ui/cjs" { identifiers: string[], ) => Promise; epochParams?: EpochParams; - votingPower: number; username: string; setUsername: (username: string) => void; };