Minor style adjustments

This commit is contained in:
apanizo 2018-10-03 12:01:36 +02:00
parent d4557e8515
commit ed1e349002
1 changed files with 6 additions and 4 deletions

View File

@ -10,15 +10,17 @@ import ChevronLeft from '@material-ui/icons/ChevronLeft'
import SafeFields, { safeFieldsValidation } from '~/routes/open/components/SafeForm' import SafeFields, { safeFieldsValidation } from '~/routes/open/components/SafeForm'
import SafeNameField from '~/routes/open/components/SafeNameForm' import SafeNameField from '~/routes/open/components/SafeNameForm'
import SafeOwnersFields from '~/routes/open/components/SafeOwnersForm' import SafeOwnersFields from '~/routes/open/components/SafeOwnersForm'
import { getOwnerNameBy, getOwnerAddressBy } from '~/routes/open/components/fields'
import { history } from '~/store' import { history } from '~/store'
import { secondary } from '~/theme/variables' import { secondary } from '~/theme/variables'
const getSteps = () => [ const getSteps = () => [
'Start', 'Details', 'Review', 'Start', 'Owners', 'Details', 'Review',
] ]
const initialValuesFrom = (userAccount: string) => ({ const initialValuesFrom = (userAccount: string) => ({
owner0Address: userAccount, [getOwnerNameBy(0)]: 'My Metamask (me)',
[getOwnerAddressBy(0)]: userAccount,
}) })
type Props = { type Props = {
@ -60,10 +62,10 @@ const Layout = ({
initialValues={initialValues} initialValues={initialValues}
> >
<Stepper.Page> <Stepper.Page>
{ SafeOwnersFields } { SafeNameField }
</Stepper.Page> </Stepper.Page>
<Stepper.Page> <Stepper.Page>
{ SafeNameField } { SafeOwnersFields }
</Stepper.Page> </Stepper.Page>
<Stepper.Page validate={safeFieldsValidation}> <Stepper.Page validate={safeFieldsValidation}>
{ SafeFields } { SafeFields }