diff --git a/packages/page-treasury/src/Overview/Proposal.tsx b/packages/page-treasury/src/Overview/Proposal.tsx index ac6e105965..a6474f043c 100644 --- a/packages/page-treasury/src/Overview/Proposal.tsx +++ b/packages/page-treasury/src/Overview/Proposal.tsx @@ -5,8 +5,8 @@ import type { DeriveTreasuryProposal } from '@polkadot/api-derive/types'; import React, { useMemo } from 'react'; -import { AddressMini, AddressSmall, LinkExternal, Table } from '@polkadot/react-components'; -import { useApi } from '@polkadot/react-hooks'; +import { AddressSmall, Columar, LinkExternal, Table } from '@polkadot/react-components'; +import { useApi, useToggle } from '@polkadot/react-hooks'; import { FormatBalance } from '@polkadot/react-query'; import { isFunction } from '@polkadot/util'; @@ -24,6 +24,7 @@ interface Props { function ProposalDisplay ({ className = '', isMember, members, proposal: { council, id, proposal }, withSend }: Props): React.ReactElement { const { t } = useTranslation(); const { api } = useApi(); + const [isExpanded, toggleIsExpanded] = useToggle(false); const hasCouncil = isFunction(api.tx.council?.propose); const hasProposals = useMemo( @@ -35,41 +36,59 @@ function ProposalDisplay ({ className = '', isMember, members, proposal: { counc ); return ( - - - - - - - - - - - - - - - - {hasCouncil - ? hasProposals - ? {t('Voting')} - : withSend && ( - - ) - : null - } - - - + + + + + + + + + + + + + + + + {hasCouncil + ? hasProposals + ? {t('Voting')} + : withSend && ( + + ) + : null + } + + - - + + + + + + + + + + + + + ); }