File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { useValidateMutation } from "@/hooks/mutations";
1212import { useScreenDimension } from "@/hooks/useScreenDimension" ;
1313import { Footer , TopNav } from "@/components/organisms" ;
1414import { useGetDRepVotingPowerList , useGetVoterInfo } from "@/hooks" ;
15+ import { getAdaHolderVotingPower } from "@/services" ;
1516
1617const ProposalDiscussion = React . lazy (
1718 ( ) => import ( "@intersect.mbo/pdf-ui/cjs" ) ,
@@ -79,6 +80,7 @@ export const ProposalDiscussionPillar = () => {
7980 username = { username }
8081 setUsername = { setUsername }
8182 epochParams = { epochParams }
83+ getAdaHolderVotingPower = { getAdaHolderVotingPower }
8284 { ...snackbarContext }
8385 />
8486 </ Suspense >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export const getAdaHolderVotingPower = async ({
44 stakeKey,
55} : {
66 stakeKey ?: string ;
7- } ) => {
7+ } ) : Promise < number > => {
88 const response = await API . get ( `/ada-holder/get-voting-power/${ stakeKey } ` ) ;
99
1010 return response . data ;
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ declare module "@intersect.mbo/pdf-ui/cjs" {
3232 epochParams ?: EpochParams ;
3333 username : string ;
3434 setUsername : ( username : string ) => void ;
35+ getAdaHolderVotingPower : ( {
36+ stakeKey,
37+ } : {
38+ stakeKey ?: string ;
39+ } ) => Promise < number > ;
3540 } ;
3641
3742 type GovernanceActionsOutcomesProps = {
You can’t perform that action at this time.
0 commit comments