Fix missing whitespace in required confirmation text

This commit is contained in:
Mikhail Mikheev 2019-10-04 15:01:11 +04:00
parent 327eab958e
commit 0378470ba6
4 changed files with 5 additions and 25 deletions

View File

@ -76,12 +76,7 @@ const ReviewAddOwner = ({
Any transaction requires the confirmation of: Any transaction requires the confirmation of:
</Paragraph> </Paragraph>
<Paragraph size="lg" color="primary" noMargin weight="bolder" className={classes.name}> <Paragraph size="lg" color="primary" noMargin weight="bolder" className={classes.name}>
{values.threshold} {`${values.threshold} out of ${owners.size + 1} owner(s)`}
{' '}
out of
{owners.size + 1}
{' '}
owner(s)
</Paragraph> </Paragraph>
</Block> </Block>
</Block> </Block>

View File

@ -87,12 +87,7 @@ const ReviewRemoveOwner = ({
Any transaction requires the confirmation of: Any transaction requires the confirmation of:
</Paragraph> </Paragraph>
<Paragraph size="lg" color="primary" noMargin weight="bolder" className={classes.name}> <Paragraph size="lg" color="primary" noMargin weight="bolder" className={classes.name}>
{values.threshold} {`${values.threshold} out of ${owners.size - 1} owner(s)`}
{' '}
out of
{owners.size - 1}
{' '}
owner(s)
</Paragraph> </Paragraph>
</Block> </Block>
</Block> </Block>

View File

@ -89,13 +89,7 @@ const ReviewRemoveOwner = ({
Any transaction requires the confirmation of: Any transaction requires the confirmation of:
</Paragraph> </Paragraph>
<Paragraph size="lg" color="primary" noMargin weight="bolder" className={classes.name}> <Paragraph size="lg" color="primary" noMargin weight="bolder" className={classes.name}>
{threshold} {`${threshold} out of ${owners.size} owner(s)`}
{' '}
out of
{' '}
{owners.size}
{' '}
owner(s)
</Paragraph> </Paragraph>
</Block> </Block>
</Block> </Block>

View File

@ -70,7 +70,7 @@ const ChangeThreshold = ({
<Col xs={2}> <Col xs={2}>
<Field <Field
name={THRESHOLD_FIELD_NAME} name={THRESHOLD_FIELD_NAME}
render={(props) => ( render={(props: Object) => (
<> <>
<SelectField {...props} disableError> <SelectField {...props} disableError>
{[...Array(Number(owners.size))].map((x, index) => ( {[...Array(Number(owners.size))].map((x, index) => (
@ -92,11 +92,7 @@ const ChangeThreshold = ({
</Col> </Col>
<Col xs={10}> <Col xs={10}>
<Paragraph size="lg" color="primary" noMargin className={classes.ownersText}> <Paragraph size="lg" color="primary" noMargin className={classes.ownersText}>
out of {`out of ${owners.size} owner(s)`}
{' '}
{owners.size}
{' '}
owner(s)
</Paragraph> </Paragraph>
</Col> </Col>
</Row> </Row>