aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
authorFrancesco Agosti <francesco.agosti93@gmail.com>2018-05-31 02:17:38 +0800
committerGitHub <noreply@github.com>2018-05-31 02:17:38 +0800
commit61cd1ae5259c03e3ae1d1711d585e2222d8cfc34 (patch)
tree4b151a99b892d8adf3c53418c3a1b03600da87bc /packages/website/ts/containers
parentbc28a08dd0d4db99549122fb4912b4931a3aad78 (diff)
parentb14c3fe48dc8eb5bad6eefceac872754eec34ffe (diff)
downloaddexon-sol-tools-61cd1ae5259c03e3ae1d1711d585e2222d8cfc34.tar
dexon-sol-tools-61cd1ae5259c03e3ae1d1711d585e2222d8cfc34.tar.gz
dexon-sol-tools-61cd1ae5259c03e3ae1d1711d585e2222d8cfc34.tar.bz2
dexon-sol-tools-61cd1ae5259c03e3ae1d1711d585e2222d8cfc34.tar.lz
dexon-sol-tools-61cd1ae5259c03e3ae1d1711d585e2222d8cfc34.tar.xz
dexon-sol-tools-61cd1ae5259c03e3ae1d1711d585e2222d8cfc34.tar.zst
dexon-sol-tools-61cd1ae5259c03e3ae1d1711d585e2222d8cfc34.zip
Merge pull request #638 from 0xProject/feature/website/onboarding-eth-flow
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,
});