aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers/portal_onboarding_flow.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/containers/portal_onboarding_flow.ts')
-rw-r--r--packages/website/ts/containers/portal_onboarding_flow.ts68
1 files changed, 0 insertions, 68 deletions
diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts
deleted file mode 100644
index 66473733c..000000000
--- a/packages/website/ts/containers/portal_onboarding_flow.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-import { BigNumber } from '@0x/utils';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Dispatch } from 'redux';
-import { Blockchain } from 'ts/blockchain';
-import { ActionTypes, ProviderType, ScreenWidths, TokenByAddress, TokenStateByAddress } from 'ts/types';
-
-import { PortalOnboardingFlow as PortalOnboardingFlowComponent } from 'ts/components/onboarding/portal_onboarding_flow';
-import { State } from 'ts/redux/reducer';
-
-interface PortalOnboardingFlowProps {
- trackedTokenStateByAddress: TokenStateByAddress;
- blockchain: Blockchain;
- refetchTokenStateAsync: (tokenAddress: string) => Promise<void>;
-}
-
-interface ConnectedState {
- networkId: number;
- stepIndex: number;
- isRunning: boolean;
- userAddress: string;
- hasBeenClosed: boolean;
- providerType: ProviderType;
- injectedProviderName: string;
- blockchainIsLoaded: boolean;
- userEtherBalanceInWei?: BigNumber;
- tokenByAddress: TokenByAddress;
- screenWidth: ScreenWidths;
-}
-
-interface ConnectedDispatch {
- updateIsRunning: (isRunning: boolean) => void;
- updateOnboardingStep: (stepIndex: number) => void;
-}
-
-const mapStateToProps = (state: State, _ownProps: PortalOnboardingFlowProps): ConnectedState => ({
- networkId: state.networkId,
- stepIndex: state.portalOnboardingStep,
- isRunning: state.isPortalOnboardingShowing,
- userAddress: state.userAddress,
- providerType: state.providerType,
- injectedProviderName: state.injectedProviderName,
- blockchainIsLoaded: state.blockchainIsLoaded,
- userEtherBalanceInWei: state.userEtherBalanceInWei,
- tokenByAddress: state.tokenByAddress,
- hasBeenClosed: state.hasPortalOnboardingBeenClosed,
- screenWidth: state.screenWidth,
-});
-
-const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
- updateIsRunning: (isRunning: boolean): void => {
- dispatch({
- type: ActionTypes.UpdatePortalOnboardingShowing,
- data: isRunning,
- });
- },
- updateOnboardingStep: (stepIndex: number): void => {
- dispatch({
- type: ActionTypes.UpdatePortalOnboardingStep,
- data: stepIndex,
- });
- },
-});
-
-export const PortalOnboardingFlow: React.ComponentClass<PortalOnboardingFlowProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(PortalOnboardingFlowComponent);