diff --git a/packages/app-council/src/Motions/Motion.tsx b/packages/app-council/src/Motions/Motion.tsx index e62559e7c4c6..087e62fd38be 100644 --- a/packages/app-council/src/Motions/Motion.tsx +++ b/packages/app-council/src/Motions/Motion.tsx @@ -6,7 +6,6 @@ import { DerivedCollectiveProposal } from '@polkadot/api-derive/types'; import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; - import { AddressMini, Voting } from '@polkadot/react-components'; import ProposalCell from '@polkadot/app-democracy/Overview/ProposalCell'; import { formatNumber } from '@polkadot/util'; @@ -14,10 +13,11 @@ import { formatNumber } from '@polkadot/util'; import translate from '../translate'; interface Props extends I18nProps { + isMember: boolean; motion: DerivedCollectiveProposal; } -function Motion ({ className, motion: { hash, proposal, votes }, t }: Props): React.ReactElement | null { +function Motion ({ className, isMember, motion: { hash, proposal, votes }, t }: Props): React.ReactElement | null { if (!votes) { return null; } @@ -60,6 +60,7 @@ function Motion ({ className, motion: { hash, proposal, votes }, t }: Props): Re diff --git a/packages/app-council/src/Motions/Propose.tsx b/packages/app-council/src/Motions/Propose.tsx index 25e9f611bf08..218fafa50336 100644 --- a/packages/app-council/src/Motions/Propose.tsx +++ b/packages/app-council/src/Motions/Propose.tsx @@ -16,6 +16,7 @@ import { createType } from '@polkadot/types'; import translate from '../translate'; interface Props extends TxModalProps, ApiProps { + isMember: boolean; memberCount: number; } @@ -70,11 +71,12 @@ class Propose extends TxModal { } protected renderTrigger = (): React.ReactNode => { - const { t } = this.props; + const { isMember, t } = this.props; return (