From 5f7d1fbf22b9946bd754715424fd2e542d73b1db Mon Sep 17 00:00:00 2001 From: Utkarsh <83659045+0xShuk@users.noreply.github.com> Date: Sun, 10 Nov 2024 03:15:20 +0530 Subject: [PATCH] add custom bonk voting power card --- BonkVotePlugin/components/BalanceCard.tsx | 4 ++-- components/GovernancePower/Power/VotingPowerCards.tsx | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/BonkVotePlugin/components/BalanceCard.tsx b/BonkVotePlugin/components/BalanceCard.tsx index 6245d337..81076309 100644 --- a/BonkVotePlugin/components/BalanceCard.tsx +++ b/BonkVotePlugin/components/BalanceCard.tsx @@ -7,7 +7,7 @@ import { useRealmVoterWeightPlugins } from "@hooks/useRealmVoterWeightPlugins" import useWalletOnePointOh from "@hooks/useWalletOnePointOh" import { GoverningTokenRole } from "@solana/spl-governance" -const BonkBalanceCard = () => { +const BonkBalanceCard = ({role} : {role?: 'community' | 'council'}) => { const mint = useRealmCommunityMintInfoQuery().data?.result const councilMint = useRealmCouncilMintInfoQuery().data?.result const realm = useRealmQuery().data?.result @@ -45,7 +45,7 @@ const BonkBalanceCard = () => { } - {councilDepositVisible && ( + {councilDepositVisible && role !== 'community' && ( case 'parcl': return + case 'bonk': + return } }