From 382839464f7d554bfc89176f669c4d72df6093f3 Mon Sep 17 00:00:00 2001 From: fragosti Date: Wed, 27 Jun 2018 17:00:07 -0700 Subject: Break wrapping ETH into a 3rd step --- .../ts/components/onboarding/portal_onboarding_flow.tsx | 17 ++++++++++++++--- .../components/onboarding/wrap_eth_onboarding_step.tsx | 12 ++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) (limited to 'packages/website/ts') diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx index 7cec965b0..4dfc948a5 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -12,7 +12,11 @@ import { IntroOnboardingStep } from 'ts/components/onboarding/intro_onboarding_s import { OnboardingFlow, Step } from 'ts/components/onboarding/onboarding_flow'; import { SetAllowancesOnboardingStep } from 'ts/components/onboarding/set_allowances_onboarding_step'; import { UnlockWalletOnboardingStep } from 'ts/components/onboarding/unlock_wallet_onboarding_step'; -import { WrapEthOnboardingStep1, WrapEthOnboardingStep2 } from 'ts/components/onboarding/wrap_eth_onboarding_step'; +import { + WrapEthOnboardingStep1, + WrapEthOnboardingStep2, + WrapEthOnboardingStep3, +} from 'ts/components/onboarding/wrap_eth_onboarding_step'; import { AllowanceToggle } from 'ts/containers/inputs/allowance_toggle'; import { ProviderType, ScreenWidths, Token, TokenByAddress, TokenStateByAddress } from 'ts/types'; import { analytics } from 'ts/utils/analytics'; @@ -101,18 +105,25 @@ class PlainPortalOnboardingFlow extends React.Component, placement: 'right', + continueButtonDisplay: 'enabled', + }, + { + target: '.wallet', + title: 'Step 1: Wrap ETH', + content: , + placement: 'right', continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : undefined, }, { target: '.wallet', title: 'Step 1: Wrap ETH', content: ( - ), placement: 'right', - continueButtonDisplay: 'enabled', + continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : undefined, }, { target: '.wallet', diff --git a/packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx b/packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx index 700330db2..8af5d8f07 100644 --- a/packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx +++ b/packages/website/ts/components/onboarding/wrap_eth_onboarding_step.tsx @@ -27,6 +27,14 @@ export const WrapEthOnboardingStep1: React.StatelessComponent Think of it like the coin version of a paper note. It has the same value, but some machines only take coins. + +); + +export interface WrapEthOnboardingStep2Props {} + +export const WrapEthOnboardingStep2: React.StatelessComponent = () => ( +
+ Wrapping your ETH is a reversable transaction, so don't worry about losing your ETH. Click @@ -42,11 +50,11 @@ export const WrapEthOnboardingStep1: React.StatelessComponent ); -export interface WrapEthOnboardingStep2Props { +export interface WrapEthOnboardingStep3Props { formattedEthBalance: string; } -export const WrapEthOnboardingStep2: React.StatelessComponent = ({ +export const WrapEthOnboardingStep3: React.StatelessComponent = ({ formattedEthBalance, }) => (
-- cgit v1.2.3