aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-25 01:11:56 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-26 03:03:18 +0800
commitb49148ec54886b11042e42eed9ad4e8793840775 (patch)
treea5ee61ed5ac86de14a60fef9c00e9550b78b0474 /packages/website/ts/containers
parentc7f5e77b3fe7c1805202a5b1e1e1ce1e9d31a6b0 (diff)
downloaddexon-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.ts10
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 => ({