From fe745e2c03bfb22381661ff14ee65a270eef9cae Mon Sep 17 00:00:00 2001 From: apanizo Date: Tue, 25 Sep 2018 13:34:36 +0200 Subject: [PATCH] Removing state in Open container to make it fully async --- src/routes/open/components/Layout.jsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/routes/open/components/Layout.jsx b/src/routes/open/components/Layout.jsx index 9b041fbf..a4503240 100644 --- a/src/routes/open/components/Layout.jsx +++ b/src/routes/open/components/Layout.jsx @@ -1,7 +1,6 @@ // @flow import * as React from 'react' import Stepper from '~/components/Stepper' -import Confirmation from '~/routes/open/components/FormConfirmation' import Block from '~/components/layout/Block' import Heading from '~/components/layout/Heading' import Row from '~/components/layout/Row' @@ -10,13 +9,11 @@ import Review from '~/routes/open/components/ReviewInformation' import ChevronLeft from '@material-ui/icons/ChevronLeft' import SafeFields, { safeFieldsValidation } from '~/routes/open/components/SafeForm' import SafeNameField from '~/routes/open/components/SafeNameForm' -import { SAFELIST_ADDRESS } from '~/routes/routes' -import Link from '~/components/layout/Link' import { history } from '~/store' import { secondary } from '~/theme/variables' const getSteps = () => [ - 'Start', 'Details', 'Review', 'Submit', + 'Start', 'Details', 'Review', ] const initialValuesFrom = (userAccount: string) => ({ @@ -26,8 +23,6 @@ const initialValuesFrom = (userAccount: string) => ({ type Props = { provider: string, userAccount: string, - safeAddress: string, - safeTx: string, onCallSafeContractSubmit: (values: Object) => Promise, } @@ -42,11 +37,10 @@ const back = () => { } const Layout = ({ - provider, userAccount, safeAddress, safeTx, onCallSafeContractSubmit, + provider, userAccount, onCallSafeContractSubmit, }: Props) => { const steps = getSteps() const initialValues = initialValuesFrom(userAccount) - const finishedButton = return ( @@ -60,8 +54,6 @@ const Layout = ({ Create New Safe { Review } - - { Confirmation } - )