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})`
}
export const differentFrom = (diffValue: string) => (value: string) => {
export const differentFrom = (diffValue: string | number) => (value: string) => {
if (value === diffValue.toString()) {
return `Value should be different than ${value}`
}

View File

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

View File

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

View File

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