Skip to content

Commit 67dcf21

Browse files
authored
Merge pull request #3205 from IntersectMBO/feat/pass-voter-info-to-pdf-pillar
feat: add voter info to pdf pillar
2 parents f6684a1 + e88b8bd commit 67dcf21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

govtool/frontend/src/pages/ProposalDiscussion.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useCardano, useGovernanceActions } from "@/context";
55
import { useValidateMutation } from "@/hooks/mutations";
66
import { useScreenDimension } from "@/hooks/useScreenDimension";
77
import { Footer, TopNav } from "@/components/organisms";
8+
import { useGetVoterInfo } from "@/hooks";
89

910
const ProposalDiscussion = React.lazy(
1011
() => import("@intersect.mbo/pdf-ui/cjs"),
@@ -14,6 +15,7 @@ export const ProposalDiscussionPillar = () => {
1415
const { pagePadding } = useScreenDimension();
1516
const { validateMetadata } = useValidateMutation();
1617
const { walletApi, ...context } = useCardano();
18+
const { voter } = useGetVoterInfo();
1719
const { createGovernanceActionJsonLD, createHash } = useGovernanceActions();
1820

1921
return (
@@ -55,6 +57,7 @@ export const ProposalDiscussionPillar = () => {
5557
...walletApi,
5658
createGovernanceActionJsonLD,
5759
createHash,
60+
voter,
5861
}}
5962
pathname={window.location.pathname}
6063
validateMetadata={

0 commit comments

Comments
 (0)