diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-06 01:54:13 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-06 01:54:13 +0800 |
commit | 302b9deef3a7625caa6d49ccc497936d5e4f07e2 (patch) | |
tree | dc3918d4d3df4ded40889e20666559e0ec80d0f8 /packages/website/ts | |
parent | 0f11ae1875aa7e21683953b45e45afb38c00c07a (diff) | |
download | dexon-0x-contracts-302b9deef3a7625caa6d49ccc497936d5e4f07e2.tar dexon-0x-contracts-302b9deef3a7625caa6d49ccc497936d5e4f07e2.tar.gz dexon-0x-contracts-302b9deef3a7625caa6d49ccc497936d5e4f07e2.tar.bz2 dexon-0x-contracts-302b9deef3a7625caa6d49ccc497936d5e4f07e2.tar.lz dexon-0x-contracts-302b9deef3a7625caa6d49ccc497936d5e4f07e2.tar.xz dexon-0x-contracts-302b9deef3a7625caa6d49ccc497936d5e4f07e2.tar.zst dexon-0x-contracts-302b9deef3a7625caa6d49ccc497936d5e4f07e2.zip |
Rename getBestDownloadLink to getBestWalletDownloadLinkAndIsMobile
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/components/onboarding/install_wallet_onboarding_step.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/components/wallet/body_overlay.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/utils/utils.ts | 2 |
3 files changed, 3 insertions, 3 deletions
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 d72290025..d618c8318 100644 --- a/packages/website/ts/components/onboarding/install_wallet_onboarding_step.tsx +++ b/packages/website/ts/components/onboarding/install_wallet_onboarding_step.tsx @@ -8,7 +8,7 @@ import { utils } from 'ts/utils/utils'; export interface InstallWalletOnboardingStepProps {} export const InstallWalletOnboardingStep: React.StatelessComponent<InstallWalletOnboardingStepProps> = () => { - const [downloadLink, isOnMobile] = utils.getBestWalletDownloadLink(); + const [downloadLink, isOnMobile] = utils.getBestWalletDownloadLinkAndIsMobile(); 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!`; diff --git a/packages/website/ts/components/wallet/body_overlay.tsx b/packages/website/ts/components/wallet/body_overlay.tsx index d8fdade7d..26359d0d2 100644 --- a/packages/website/ts/components/wallet/body_overlay.tsx +++ b/packages/website/ts/components/wallet/body_overlay.tsx @@ -115,7 +115,7 @@ const UseDifferentWallet = (props: UseDifferentWallet) => { }; const GetWalletCallToAction = () => { - const [downloadLink, isOnMobile] = utils.getBestWalletDownloadLink(); + const [downloadLink, isOnMobile] = utils.getBestWalletDownloadLinkAndIsMobile(); const imageUrl = isOnMobile ? TOSHI_IMG_SRC : METAMASK_IMG_SRC; const text = isOnMobile ? 'Get Toshi Wallet' : 'Get MetaMask Wallet'; return ( diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index d5e2c82b7..623819fc9 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -440,7 +440,7 @@ export const utils = { return !_.isUndefined(token.trackedTimestamp); }, // Returns a [downloadLink, isOnMobile] tuple. - getBestWalletDownloadLink(): [string, boolean] { + getBestWalletDownloadLinkAndIsMobile(): [string, boolean] { const browserType = utils.getBrowserType(); const isOnMobile = utils.isMobileOperatingSystem(); const operatingSystem = utils.getOperatingSystem(); |