collective => council (#1462)
This commit is contained in:
parent
407b4785b1
commit
07e79097ff
@ -145,7 +145,7 @@ export default withMulti(
|
||||
translate,
|
||||
withCalls<Props>(
|
||||
[
|
||||
'query.collective.proposalOf',
|
||||
'query.council.proposalOf',
|
||||
{
|
||||
paramName: 'hash',
|
||||
propName: 'proposal',
|
||||
@ -154,7 +154,7 @@ export default withMulti(
|
||||
}
|
||||
],
|
||||
[
|
||||
'query.collective.voting',
|
||||
'query.council.voting',
|
||||
{
|
||||
paramName: 'hash',
|
||||
propName: 'votes',
|
||||
|
||||
@ -47,7 +47,7 @@ class Propose extends TxModal<Props, State> {
|
||||
|
||||
protected headerText = (): string => this.props.t('Propose a council motion');
|
||||
|
||||
protected txMethod = (): string => 'collective.propose';
|
||||
protected txMethod = (): string => 'council.propose';
|
||||
|
||||
protected txParams = (): [BN | null, ...Proposal[]] => {
|
||||
const { method, threshold } = this.state;
|
||||
|
||||
@ -15,7 +15,7 @@ import Propose from './Propose';
|
||||
import translate from '../translate';
|
||||
|
||||
interface Props extends I18nProps {
|
||||
collective_proposals?: Hash[];
|
||||
council_proposals?: Hash[];
|
||||
}
|
||||
|
||||
class Proposals extends React.PureComponent<Props> {
|
||||
@ -36,9 +36,9 @@ class Proposals extends React.PureComponent<Props> {
|
||||
}
|
||||
|
||||
private renderProposals (): React.ReactNode {
|
||||
const { collective_proposals = [] } = this.props;
|
||||
const { council_proposals = [] } = this.props;
|
||||
|
||||
return collective_proposals.map((hash: Hash): React.ReactNode => (
|
||||
return council_proposals.map((hash: Hash): React.ReactNode => (
|
||||
<Motion
|
||||
hash={hash.toHex()}
|
||||
key={hash.toHex()}
|
||||
@ -49,6 +49,6 @@ class Proposals extends React.PureComponent<Props> {
|
||||
|
||||
export default translate(
|
||||
withCalls<Props>(
|
||||
'query.collective.proposals'
|
||||
'query.council.proposals'
|
||||
)(Proposals)
|
||||
);
|
||||
|
||||
@ -37,7 +37,7 @@ class Approve extends TxModal<Props, State> {
|
||||
|
||||
protected headerText = (): string => this.props.t('Approve or reject proposal');
|
||||
|
||||
protected txMethod = (): string => 'collective.propose';
|
||||
protected txMethod = (): string => 'council.propose';
|
||||
|
||||
protected txParams = (): [number, any] => {
|
||||
const { api, proposalId, threshold } = this.props;
|
||||
|
||||
@ -48,7 +48,7 @@ class Voting extends TxModal<Props, State> {
|
||||
protected txMethod = (): string => {
|
||||
const { isCouncil } = this.props;
|
||||
|
||||
return isCouncil ? 'collective.vote' : 'democracy.vote';
|
||||
return isCouncil ? 'council.vote' : 'democracy.vote';
|
||||
}
|
||||
|
||||
protected txParams = (): any[] => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user