modal ui
This commit is contained in:
parent
473e2a769f
commit
a6467c3c85
|
@ -10,6 +10,7 @@ import {
|
||||||
composeValidators, minValue, mustBeInteger, required,
|
composeValidators, minValue, mustBeInteger, required,
|
||||||
} from '~/components/forms/validator'
|
} from '~/components/forms/validator'
|
||||||
import Field from '~/components/forms/Field'
|
import Field from '~/components/forms/Field'
|
||||||
|
import GnoForm from '~/components/forms/GnoForm'
|
||||||
import Hairline from '~/components/layout/Hairline'
|
import Hairline from '~/components/layout/Hairline'
|
||||||
import Paragraph from '~/components/layout/Paragraph'
|
import Paragraph from '~/components/layout/Paragraph'
|
||||||
import Button from '~/components/layout/Button'
|
import Button from '~/components/layout/Button'
|
||||||
|
@ -28,7 +29,10 @@ type Props = {
|
||||||
|
|
||||||
const ChangeThreshold = ({
|
const ChangeThreshold = ({
|
||||||
onClose, owners, threshold, classes,
|
onClose, owners, threshold, classes,
|
||||||
}: Props) => (
|
}: Props) => {
|
||||||
|
const handleSubmit = () => ({})
|
||||||
|
|
||||||
|
return (
|
||||||
<React.Fragment>
|
<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>
|
||||||
|
@ -40,14 +44,19 @@ const ChangeThreshold = ({
|
||||||
</Row>
|
</Row>
|
||||||
<Hairline />
|
<Hairline />
|
||||||
<Block className={classes.modalContent}>
|
<Block className={classes.modalContent}>
|
||||||
|
<GnoForm onSubmit={handleSubmit} initialValues={{ threshold: threshold.toString() }}>
|
||||||
|
{() => (
|
||||||
|
<React.Fragment>
|
||||||
<Row>
|
<Row>
|
||||||
<Paragraph>
|
<Paragraph>
|
||||||
Every transaction outside any specified daily limits, needs to be confirmed by all specified owners. If no
|
Every transaction outside any specified daily limits, needs to be confirmed by all specified owners.
|
||||||
daily limits are set, all owners will need to sign for transactions.
|
If no daily limits are set, all owners will need to sign for transactions.
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Paragraph weight="bolder">Any transaction over any daily limit requires the confirmation of:</Paragraph>
|
<Paragraph weight="bolder">
|
||||||
|
Any transaction over any daily limit requires the confirmation of:
|
||||||
|
</Paragraph>
|
||||||
</Row>
|
</Row>
|
||||||
<Row margin="xl" align="center">
|
<Row margin="xl" align="center">
|
||||||
<Col xs={2}>
|
<Col xs={2}>
|
||||||
|
@ -70,10 +79,13 @@ const ChangeThreshold = ({
|
||||||
{' '}
|
{' '}
|
||||||
{owners.size}
|
{owners.size}
|
||||||
{' '}
|
{' '}
|
||||||
owner(s)
|
owner(s)
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
</React.Fragment>
|
||||||
|
)}
|
||||||
|
</GnoForm>
|
||||||
</Block>
|
</Block>
|
||||||
<Hairline style={{ position: 'absolute', bottom: 85 }} />
|
<Hairline style={{ position: 'absolute', bottom: 85 }} />
|
||||||
<Row align="center" className={classes.buttonRow}>
|
<Row align="center" className={classes.buttonRow}>
|
||||||
|
@ -85,6 +97,7 @@ const ChangeThreshold = ({
|
||||||
</Button>
|
</Button>
|
||||||
</Row>
|
</Row>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
export default withStyles(styles)(ChangeThreshold)
|
export default withStyles(styles)(ChangeThreshold)
|
||||||
|
|
|
@ -64,6 +64,8 @@ owners
|
||||||
>
|
>
|
||||||
<ChangeThreshold
|
<ChangeThreshold
|
||||||
onClose={toggleModal}
|
onClose={toggleModal}
|
||||||
|
owners={owners}
|
||||||
|
threshold={threshold}
|
||||||
/>
|
/>
|
||||||
</Modal>
|
</Modal>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
|
Loading…
Reference in New Issue