Rename getBestDownloadLink to getBestWalletDownloadLinkAndIsMobile

This commit is contained in:
fragosti
2018-07-05 10:54:13 -07:00
parent 0f11ae1875
commit 302b9deef3
3 changed files with 3 additions and 3 deletions

View File

@@ -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!`;

View File

@@ -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 (

View File

@@ -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();