diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-05-25 01:11:56 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-05-26 03:03:18 +0800 |
commit | b49148ec54886b11042e42eed9ad4e8793840775 (patch) | |
tree | a5ee61ed5ac86de14a60fef9c00e9550b78b0474 /packages/website/ts/containers | |
parent | c7f5e77b3fe7c1805202a5b1e1e1ce1e9d31a6b0 (diff) | |
download | dexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.tar dexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.tar.gz dexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.tar.bz2 dexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.tar.lz dexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.tar.xz dexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.tar.zst dexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.zip |
Implement metamask installation flow
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r-- | packages/website/ts/containers/portal_onboarding_flow.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts index 3cd4e8510..3ce91b7b3 100644 --- a/packages/website/ts/containers/portal_onboarding_flow.ts +++ b/packages/website/ts/containers/portal_onboarding_flow.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { connect } from 'react-redux'; import { Dispatch } from 'redux'; -import { ActionTypes } from 'ts/types'; +import { ActionTypes, ProviderType } from 'ts/types'; import { PortalOnboardingFlow as PortalOnboardingFlowComponent } from 'ts/components/onboarding/portal_onboarding_flow'; import { State } from 'ts/redux/reducer'; @@ -11,6 +11,10 @@ interface PortalOnboardingFlowProps {} interface ConnectedState { stepIndex: number; isRunning: boolean; + userAddress: string; + providerType: ProviderType; + injectedProviderName: string; + blockchainIsLoaded: boolean; } interface ConnectedDispatch { @@ -20,6 +24,10 @@ interface ConnectedDispatch { const mapStateToProps = (state: State): ConnectedState => ({ stepIndex: state.portalOnboardingStep, isRunning: state.isPortalOnboardingShowing, + userAddress: state.userAddress, + providerType: state.providerType, + injectedProviderName: state.injectedProviderName, + blockchainIsLoaded: state.blockchainIsLoaded, }); const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({ |