diff --git a/CHANGELOG.md b/CHANGELOG.md index 95c10954a..d2c4a786e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ changes. ### Changed - Adjust top menu (navbar) layout when wallet is not connected [Issue-3682](https://github.com/IntersectMBO/govtool/issues/3682) +- Unification of sections 'Receiving Address' and 'Amount' in Treasury Withdrawal Governance Action [Issue-3828](https://github.com/IntersectMBO/govtool/issues/3828) ### Removed diff --git a/govtool/frontend/src/components/molecules/GovernanceActionCardTreasuryWithdrawalElement.tsx b/govtool/frontend/src/components/molecules/GovernanceActionCardTreasuryWithdrawalElement.tsx index fe642c989..69d286a3f 100644 --- a/govtool/frontend/src/components/molecules/GovernanceActionCardTreasuryWithdrawalElement.tsx +++ b/govtool/frontend/src/components/molecules/GovernanceActionCardTreasuryWithdrawalElement.tsx @@ -1,10 +1,7 @@ -import { Box } from "@mui/material"; import { useTranslation } from "react-i18next"; -import { Typography, CopyButton } from "@atoms"; import { correctVoteAdaFormat } from "@utils"; - -import { useScreenDimension } from "@/hooks"; +import { GovernanceActionCardElement } from "./GovernanceActionCardElement"; type Props = { receivingAddress: string; @@ -16,87 +13,22 @@ export const GovernanceActionCardTreasuryWithdrawalElement = ({ amount, }: Props) => { const { t } = useTranslation(); - const { isMobile } = useScreenDimension(); + return ( - - - - {t("govActions.receivingAddress")} - - - - {receivingAddress} - - - - - - - - - {t("govActions.amount")} - - - ₳ {correctVoteAdaFormat(amount) ?? 0} - - - + <> + + + ); };