Removing old Name Section

This commit is contained in:
apanizo 2018-09-24 17:10:15 +02:00
parent 07974a8101
commit 1c3c548284
2 changed files with 1 additions and 27 deletions

View File

@ -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

View File

@ -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 />