Adapt owners inputs to new flow

This commit is contained in:
apanizo 2018-09-25 10:38:07 +02:00
parent 6a76217020
commit d8965b6304
2 changed files with 23 additions and 32 deletions

View File

@ -52,8 +52,7 @@ const Owners = (props: Props) => {
</Block>
{ renderOwners && [...Array(Number(numOwners))].map((x, index) => (
<Row key={`owner${(index)}`}>
<Col xs={11} xsOffset={1}>
<Block margin="sm">
<Col xs={11} xsOffset={1} layout="column" margin="md">
<Paragraph weight="bold">Owner {index + 1}</Paragraph>
<Block margin="sm">
<Field
@ -75,7 +74,6 @@ const Owners = (props: Props) => {
text="Owner Address"
/>
</Block>
</Block>
</Col>
</Row>
)) }

View File

@ -7,7 +7,6 @@ import { required } from '~/components/forms/validator'
import Block from '~/components/layout/Block'
import { FIELD_NAME } from '~/routes/open/components/fields'
import Paragraph from '~/components/layout/Paragraph'
import { lg } from '~/theme/variables'
import OpenPaper from '../OpenPaper'
type Props = {
@ -18,15 +17,10 @@ const styles = () => ({
root: {
display: 'flex',
},
container: {
maxWidth: '600px',
letterSpacing: '-0.5px',
padding: lg,
},
})
const SafeName = ({ classes }: Props) => (
<Block className={classes.container}>
<React.Fragment>
<Block margin="lg">
<Paragraph noMargin size="md" color="primary" weight="light">
This setup will create a Safe with one or more owners. Optionally give the Safe a local name.
@ -53,15 +47,14 @@ const SafeName = ({ classes }: Props) => (
text="Safe name"
/>
</Block>
</Block>
</React.Fragment>
)
const SafeNameForm = withStyles(styles)(SafeName)
const SafeNamePage = () => (controls: React$Node) => (
<OpenPaper>
<OpenPaper controls={controls}>
<SafeNameForm />
{ controls }
</OpenPaper>
)