mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-17 20:17:02 +00:00
Safe name step on create Safe process
This commit is contained in:
parent
e195055a0c
commit
3c856e7511
@ -7,6 +7,7 @@ import { required } from '~/components/forms/validator'
|
|||||||
import Block from '~/components/layout/Block'
|
import Block from '~/components/layout/Block'
|
||||||
import { FIELD_NAME } from '~/routes/open/components/fields'
|
import { FIELD_NAME } from '~/routes/open/components/fields'
|
||||||
import Paragraph from '~/components/layout/Paragraph'
|
import Paragraph from '~/components/layout/Paragraph'
|
||||||
|
import { lg } from '~/theme/variables'
|
||||||
import OpenPaper from '../OpenPaper'
|
import OpenPaper from '../OpenPaper'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -17,25 +18,15 @@ const styles = () => ({
|
|||||||
root: {
|
root: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
},
|
},
|
||||||
|
container: {
|
||||||
|
maxWidth: '600px',
|
||||||
|
letterSpacing: '-0.5px',
|
||||||
|
padding: lg,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const SafeName = ({ classes }: Props) => (
|
const SafeName = ({ classes }: Props) => (
|
||||||
<Block margin="md" className={classes.root}>
|
<Block className={classes.container}>
|
||||||
<Field
|
|
||||||
name={FIELD_NAME}
|
|
||||||
component={TextField}
|
|
||||||
type="text"
|
|
||||||
validate={required}
|
|
||||||
placeholder="Name of the new Safe"
|
|
||||||
text="Safe name"
|
|
||||||
/>
|
|
||||||
</Block>
|
|
||||||
)
|
|
||||||
|
|
||||||
const SafeNameForm = withStyles(styles)(SafeName)
|
|
||||||
|
|
||||||
const SafeNamePage = () => () => (
|
|
||||||
<OpenPaper>
|
|
||||||
<Paragraph size="md" color="primary">
|
<Paragraph size="md" color="primary">
|
||||||
This setup will create a Safe with one or more owners. Optionally give the Safe a local name.
|
This setup will create a Safe with one or more owners. Optionally give the Safe a local name.
|
||||||
By continuing you consent with the terms of use and privacy policy.
|
By continuing you consent with the terms of use and privacy policy.
|
||||||
@ -46,7 +37,25 @@ const SafeNamePage = () => () => (
|
|||||||
<Paragraph size="md" color="primary" weight="bolder">
|
<Paragraph size="md" color="primary" weight="bolder">
|
||||||
● My Safe is a smart contract on the Ethereum blockchain.
|
● My Safe is a smart contract on the Ethereum blockchain.
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
|
<Block margin="md" className={classes.root}>
|
||||||
|
<Field
|
||||||
|
name={FIELD_NAME}
|
||||||
|
component={TextField}
|
||||||
|
type="text"
|
||||||
|
validate={required}
|
||||||
|
placeholder="Name of the new Safe"
|
||||||
|
text="Safe name"
|
||||||
|
/>
|
||||||
|
</Block>
|
||||||
|
</Block>
|
||||||
|
)
|
||||||
|
|
||||||
|
const SafeNameForm = withStyles(styles)(SafeName)
|
||||||
|
|
||||||
|
const SafeNamePage = () => (controls: React$Node) => (
|
||||||
|
<OpenPaper>
|
||||||
<SafeNameForm />
|
<SafeNameForm />
|
||||||
|
{ controls }
|
||||||
</OpenPaper>
|
</OpenPaper>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user