Move seconding (#1968)

This commit is contained in:
Jaco Greeff 2019-11-30 16:50:56 +01:00 committed by GitHub
parent 3868a45cbd
commit 91ee22b9be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 11 deletions

View File

@ -59,13 +59,11 @@ function Proposal (props: Props): React.ReactElement<Props> {
className={className}
idNumber={idNumber}
proposal={value}
accessory={
<Seconding
depositors={depositors}
proposalId={idNumber}
/>
}
>
<Seconding
depositors={depositors}
proposalId={idNumber}
/>
{renderProposal(props)}
</ActionItem>
);

View File

@ -70,14 +70,14 @@ function Seconding ({ depositors, proposalId, t }: Props): React.ReactElement<Pr
</Modal.Actions>
</Modal>
)}
<div className='ui--Row-buttons'>
<Button.Group>
<Button
isPrimary
label={t('Second proposal')}
icon='toggle off'
onClick={_toggleSeconding}
/>
</div>
</Button.Group>
</>
);
}

View File

@ -41,7 +41,7 @@ export const styles = `
`;
function ProposedAction (props: Props): React.ReactElement<Props> {
const { asInset, insetProps, isCollapsible, proposal, withLinks, expandNested } = props;
const { className, asInset, insetProps, isCollapsible, proposal, withLinks, expandNested } = props;
const idNumber = typeof props.idNumber === 'string'
? props.idNumber
: formatNumber(props.idNumber);
@ -94,7 +94,7 @@ function ProposedAction (props: Props): React.ReactElement<Props> {
}
return (
<>
<div className={className}>
<h3>{header}</h3>
{isCollapsible
? (
@ -111,7 +111,7 @@ function ProposedAction (props: Props): React.ReactElement<Props> {
{params}
</>
)}
</>
</div>
);
}