From 931e7e7d71be4ec18081a2501dee0254b511f388 Mon Sep 17 00:00:00 2001 From: fragosti Date: Tue, 3 Jul 2018 14:28:49 -0700 Subject: Prompt user to download Toshi or MetaMask in install wallet onboarding step --- .../onboarding/install_wallet_onboarding_step.tsx | 47 ++++++++++++++++------ 1 file changed, 35 insertions(+), 12 deletions(-) (limited to 'packages/website/ts/components/onboarding/install_wallet_onboarding_step.tsx') diff --git a/packages/website/ts/components/onboarding/install_wallet_onboarding_step.tsx b/packages/website/ts/components/onboarding/install_wallet_onboarding_step.tsx index a95c464af..d72290025 100644 --- a/packages/website/ts/components/onboarding/install_wallet_onboarding_step.tsx +++ b/packages/website/ts/components/onboarding/install_wallet_onboarding_step.tsx @@ -1,19 +1,42 @@ import { colors } from '@0xproject/react-shared'; -import ActionAccountBalanceWallet from 'material-ui/svg-icons/action/account-balance-wallet'; import * as React from 'react'; import { Container } from 'ts/components/ui/container'; +import { Image } from 'ts/components/ui/image'; import { Text } from 'ts/components/ui/text'; +import { utils } from 'ts/utils/utils'; export interface InstallWalletOnboardingStepProps {} -export const InstallWalletOnboardingStep: React.StatelessComponent = () => ( -
- - Before you begin, you need to connect to a wallet. This will be used across all 0x relayers and dApps. - - - - - Please refresh the page once you've done this to continue! -
-); +export const InstallWalletOnboardingStep: React.StatelessComponent = () => { + const [downloadLink, isOnMobile] = utils.getBestWalletDownloadLink(); + const followupText = isOnMobile + ? `Please revisit this site in your mobile dApp browser to continue!` + : `Please refresh the page once you've done this to continue!`; + const downloadText = isOnMobile ? 'Get the Toshi Wallet' : 'Get the MetaMask extension'; + return ( +
+ First, you need to connect to a wallet. This will be used across all 0x relayers and dApps. + + + + + + {downloadText} + + + + + {followupText} +
+ ); +}; -- cgit v1.2.3