aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-30 08:57:22 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-30 08:57:22 +0800
commitb14c3fe48dc8eb5bad6eefceac872754eec34ffe (patch)
tree4b151a99b892d8adf3c53418c3a1b03600da87bc /packages/website/ts/containers
parentbc28a08dd0d4db99549122fb4912b4931a3aad78 (diff)
downloaddexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.gz
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.bz2
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.lz
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.xz
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.zst
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.zip
Onboarding: implement add ETH step, and stub for add WETH step
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r--packages/website/ts/containers/portal_onboarding_flow.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts
index 56a1db553..84739192f 100644
--- a/packages/website/ts/containers/portal_onboarding_flow.ts
+++ b/packages/website/ts/containers/portal_onboarding_flow.ts
@@ -1,7 +1,8 @@
+import { BigNumber } from '@0xproject/utils';
import * as React from 'react';
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
-import { ActionTypes, ProviderType } from 'ts/types';
+import { ActionTypes, ProviderType, TokenByAddress } from 'ts/types';
import { PortalOnboardingFlow as PortalOnboardingFlowComponent } from 'ts/components/onboarding/portal_onboarding_flow';
import { State } from 'ts/redux/reducer';
@@ -12,10 +13,12 @@ interface ConnectedState {
stepIndex: number;
isRunning: boolean;
userAddress: string;
+ hasBeenSeen: boolean;
providerType: ProviderType;
injectedProviderName: string;
blockchainIsLoaded: boolean;
- hasBeenSeen: boolean;
+ userEthBalanceInWei: BigNumber;
+ tokenByAddress: TokenByAddress;
}
interface ConnectedDispatch {
@@ -30,6 +33,8 @@ const mapStateToProps = (state: State): ConnectedState => ({
providerType: state.providerType,
injectedProviderName: state.injectedProviderName,
blockchainIsLoaded: state.blockchainIsLoaded,
+ userEthBalanceInWei: state.userEtherBalanceInWei,
+ tokenByAddress: state.tokenByAddress,
hasBeenSeen: state.hasPortalOnboardingBeenSeen,
});