Removing old Name Section
This commit is contained in:
parent
07974a8101
commit
1c3c548284
|
@ -1,22 +0,0 @@
|
|||
// @flow
|
||||
import * as React from 'react'
|
||||
import Field from '~/components/forms/Field'
|
||||
import TextField from '~/components/forms/TextField'
|
||||
import { required } from '~/components/forms/validator'
|
||||
import Block from '~/components/layout/Block'
|
||||
import { FIELD_NAME } from '~/routes/open/components/fields'
|
||||
|
||||
const Name = () => (
|
||||
<Block margin="md">
|
||||
<Field
|
||||
name={FIELD_NAME}
|
||||
component={TextField}
|
||||
type="text"
|
||||
validate={required}
|
||||
placeholder="Safe name*"
|
||||
text="Safe name"
|
||||
/>
|
||||
</Block>
|
||||
)
|
||||
|
||||
export default Name
|
|
@ -1,9 +1,7 @@
|
|||
// @flow
|
||||
import * as React from 'react'
|
||||
import Block from '~/components/layout/Block'
|
||||
import Heading from '~/components/layout/Heading'
|
||||
import { getAccountsFrom } from '~/routes/open/utils/safeDataExtractor'
|
||||
import Name from './Name'
|
||||
import Owners from './Owners'
|
||||
import Confirmations from './Confirmations'
|
||||
import DailyLimit from './DailyLimit'
|
||||
|
@ -20,10 +18,8 @@ export const safeFieldsValidation = (values: Object) => {
|
|||
return errors
|
||||
}
|
||||
|
||||
export default () => ({ values }: Object) => (
|
||||
export default () => (constrols: React$Node, { values }: Object) => (
|
||||
<Block margin="md">
|
||||
<Heading tag="h2" margin="lg">Deploy a new Safe</Heading>
|
||||
<Name />
|
||||
<Owners numOwners={values.owners} otherAccounts={getAccountsFrom(values)} />
|
||||
<Confirmations />
|
||||
<DailyLimit />
|
||||
|
|
Loading…
Reference in New Issue