diff --git a/govtool/frontend/src/components/atoms/StakeRadio.tsx b/govtool/frontend/src/components/atoms/StakeRadio.tsx index ab054286..c7360ca6 100644 --- a/govtool/frontend/src/components/atoms/StakeRadio.tsx +++ b/govtool/frontend/src/components/atoms/StakeRadio.tsx @@ -2,13 +2,8 @@ import { Dispatch, FC, SetStateAction } from "react"; import { Box, IconButton, Typography } from "@mui/material"; import { ICONS } from "@consts"; -import { - useGetAdaHolderVotingPowerQuery, - useScreenDimension, - useTranslation, -} from "@hooks"; +import { useScreenDimension } from "@hooks"; import { theme } from "@/theme"; -import { correctAdaFormat } from "@/utils/adaFormat"; type StakeRadioProps = { isChecked?: boolean; @@ -23,9 +18,9 @@ export const StakeRadio: FC = ({ ...props }) => { palette: { boxShadow1 }, } = theme; const { isMobile } = useScreenDimension(); - const { powerIsLoading, votingPower } = - useGetAdaHolderVotingPowerQuery(stakeKey); - const { t } = useTranslation(); + // const { powerIsLoading, votingPower } = + // useGetAdaHolderVotingPowerQuery(stakeKey); + // const { t } = useTranslation(); return ( = ({ ...props }) => { /> - + {/* TODO uncomment when voting power value s correct */} + {/* {t("votingPower")} : @@ -86,7 +82,7 @@ export const StakeRadio: FC = ({ ...props }) => { ₳ {correctAdaFormat(votingPower) ?? 0} )} - + */} ); diff --git a/govtool/frontend/src/components/molecules/AutomatedVotingCard.tsx b/govtool/frontend/src/components/molecules/AutomatedVotingCard.tsx index 85827eb6..85563193 100644 --- a/govtool/frontend/src/components/molecules/AutomatedVotingCard.tsx +++ b/govtool/frontend/src/components/molecules/AutomatedVotingCard.tsx @@ -1,4 +1,4 @@ -import { Box, Divider } from "@mui/material"; +import { Box } from "@mui/material"; import { Button, Typography } from "@atoms"; import { primaryBlue } from "@consts"; @@ -19,7 +19,6 @@ export const AutomatedVotingCard = ({ onClickDelegate, onClickInfo, title, - votingPower, transactionId, }: AutomatedVotingCardProps) => { const { cExplorerBaseUrl } = useAppContext(); @@ -84,7 +83,8 @@ export const AutomatedVotingCard = ({ {!inProgress && !isSelected && ( <> - + /> */} {{votingPower}} can be used to vote.", + "Your Voting Power can be used to vote.", register: "Register", registerDescription: "Register to Vote on Governance Actions using your own voting power of ₳{{votingPower}}.", @@ -120,7 +120,7 @@ export const en = { retirementInProgress: "The retirement process is ongoing. This may take several minutes.", wasRegisteredDescription: - "You cannot vote on Governance Actions using your own voting power of ₳{{votingPower}}. until you re-register.", + "You cannot vote on Governance Actions using your own voting power until you re-register.", youAreDirectVoterTitle: "You are a Direct Voter", }, delegation: { @@ -129,18 +129,18 @@ export const en = { noDelegationDescription: "Find a DRep to vote on your behalf.", noDelegationActionButton: "View DRep Directory", dRepDelegationTitle: - "Your Voting Power of ₳{{ada}}\nis Delegated to:", + "Your Voting Power is delegated to:", noConfidenceDelegationTitle: - "You have delegated ₳{{ada}}\nto “No Confidence”", + "You have delegated your voting power to “No Confidence”", abstainDelegationTitle: - "You have delegated ₳{{ada}}\nto “Abstain”", + "You have delegated your voting power to “Abstain”", abstainDescription: "You have selected to apply your Voting Power to Abstain on every vote.", noDescription: "You have selected to apply your Voting Power to No Confidence on every vote.", inProgress: { title: "Delegation", - dRep: "Your voting power of ₳{{ada}} is being delegated to:", + dRep: "Your voting power is being delegated to:", abstain: "You have selected to apply your Voting Power to Abstain on every vote.", no: "You have selected to apply your Voting Power to No Confidence on every vote.", @@ -254,9 +254,9 @@ export const en = { abstainCardDefaultTitle: "Abstain from Every Vote", automatedVotingOptions: "Automated Voting Options", editBtn: "Edit DRep data", - delegatedToAbstainTitle: "You have delegated ₳{{ada}} to “Abstain”", + delegatedToAbstainTitle: "You have delegated your voting power to “Abstain”", delegatedToNoConfidenceTitle: - "You have delegated ₳{{ada}} to “No Confidence”", + "You have delegated your voting power to “No Confidence”", delegatedToAbstainDescription: "You have selected to apply your Voting Power to Abstain on every vote.", delegatedToNoConfidenceDescription: @@ -266,10 +266,8 @@ export const en = { filterTitle: "DRep Status", goToDRepDirectory: "Go to DRep Directory", meAsDRep: "This DRep ID is connected to your wallet", - myDelegation: "You have delegated ₳ {{ada}} to:", - myDelegationToYourself: - "You have delegated ₳ {{ada}} to yourself:", - myDRep: "You have delegated ₳{{ada}} to this DRep.", + myDelegation: "You have delegated your voting power to:", + myDRep: "You have delegated your voting power to this DRep.", listTitle: "Find a DRep", noConfidenceDefaultDescription: "Select this to signal no confidence in the current constitutional committee by voting NO on every proposal and voting YES to no confidence proposals", @@ -742,7 +740,7 @@ export const en = { "Looks like you cannot retire, because currently you are not a Direct Voter.", }, registerDescription: - "A Direct Voter is someone that can vote on any Governance Action with their own Voting Power, which is equal to the balance of Ada in their connected wallet. <0>Learn More about Direct Voter.\n\nBecoming a Direct Voter will require a refundable deposit of ₳{{deposit}}.\n\nYour deposit will be refunded if you either retire or delegate your voting power to someone else (a DRep)", + "A Direct Voter is someone that can vote on any Governance Action with their own Voting Power, which is equal to the balance of Ada in their connected wallet. <0>Learn More about Direct Voter.\n\nBecoming a Direct Voter will require a refundable deposit equal to your voting power.\n\nYour deposit will be refunded if you either retire or delegate your voting power to someone else (a DRep)", registerHeading: "What this Means", retirementDescription: "By Retiring you are giving up your Voting Power. You will not be able to vote on any Governance Actions. Your deposit of {{deposit}} ada will be refunded.\n\nYou can at any time in the future re-register to become a Direct Voter, or you can delegate your Voting Power to someone else, or become a DRep.\n\nThese options are listed in our Guides here: <0>Voting options and Roles",