update threshold text

This commit is contained in:
Mikhail Mikheev 2019-09-03 16:28:21 +04:00
parent d2dad7467d
commit 19b7777a41
4 changed files with 10 additions and 14 deletions

View File

@ -87,7 +87,7 @@ export const inLimit = (limit: number, base: number, baseText: string, symbol: s
return `Should not exceed ${max} ${symbol} (amount to reach ${baseText})` return `Should not exceed ${max} ${symbol} (amount to reach ${baseText})`
} }
export const differentFrom = (diffValue: string) => (value: string) => { export const differentFrom = (diffValue: string | number) => (value: string) => {
if (value === diffValue.toString()) { if (value === diffValue.toString()) {
return `Value should be different than ${value}` return `Value should be different than ${value}`
} }

View File

@ -41,7 +41,7 @@ const ChangeThreshold = ({
} }
return ( return (
<React.Fragment> <>
<Row align="center" grow className={classes.heading}> <Row align="center" grow className={classes.heading}>
<Paragraph className={classes.headingText} weight="bolder" noMargin> <Paragraph className={classes.headingText} weight="bolder" noMargin>
Change required confirmations Change required confirmations
@ -53,7 +53,7 @@ const ChangeThreshold = ({
<Hairline /> <Hairline />
<GnoForm onSubmit={handleSubmit} initialValues={{ threshold: threshold.toString() }}> <GnoForm onSubmit={handleSubmit} initialValues={{ threshold: threshold.toString() }}>
{() => ( {() => (
<React.Fragment> <>
<Block className={classes.modalContent}> <Block className={classes.modalContent}>
<Row> <Row>
<Paragraph> <Paragraph>
@ -63,14 +63,14 @@ const ChangeThreshold = ({
</Row> </Row>
<Row> <Row>
<Paragraph weight="bolder"> <Paragraph weight="bolder">
Any transaction over any daily limit requires the confirmation of: Any transaction requires the confirmation of:
</Paragraph> </Paragraph>
</Row> </Row>
<Row margin="xl" align="center" className={classes.inputRow}> <Row margin="xl" align="center" className={classes.inputRow}>
<Col xs={2}> <Col xs={2}>
<Field <Field
name={THRESHOLD_FIELD_NAME} name={THRESHOLD_FIELD_NAME}
render={props => ( render={(props) => (
<> <>
<SelectField {...props} disableError> <SelectField {...props} disableError>
{[...Array(Number(owners.size))].map((x, index) => ( {[...Array(Number(owners.size))].map((x, index) => (
@ -96,7 +96,7 @@ const ChangeThreshold = ({
{' '} {' '}
{owners.size} {owners.size}
{' '} {' '}
owner(s) owner(s)
</Paragraph> </Paragraph>
</Col> </Col>
</Row> </Row>
@ -110,10 +110,10 @@ const ChangeThreshold = ({
CHANGE CHANGE
</Button> </Button>
</Row> </Row>
</React.Fragment> </>
)} )}
</GnoForm> </GnoForm>
</React.Fragment> </>
) )
} }

View File

@ -49,12 +49,9 @@ const ThresholdSettings = ({
<Block className={classes.container}> <Block className={classes.container}>
<Heading tag="h3">Required confirmations</Heading> <Heading tag="h3">Required confirmations</Heading>
<Paragraph> <Paragraph>
Any transaction over any daily limit Any transaction requires the confirmation of:
<br />
{' '}
requires the confirmation of:
</Paragraph> </Paragraph>
<Paragraph size="xxl" className={classes.ownersText}> <Paragraph size="lg" className={classes.ownersText}>
<Bold>{threshold}</Bold> <Bold>{threshold}</Bold>
{' '} {' '}
out of out of

View File

@ -5,7 +5,6 @@ import {
export const styles = () => ({ export const styles = () => ({
ownersText: { ownersText: {
fontSize: '26px',
color: secondaryText, color: secondaryText,
'& b': { '& b': {
color: fontColor, color: fontColor,