diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-15 08:18:16 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-16 04:41:49 +0800 |
commit | f4cc152cfb6da5c13d2d95ccd2f1a022af9b91a0 (patch) | |
tree | f76266858df3cebe3a94191f4bb7aa0fc27132a1 /packages/instant/src/components | |
parent | 29747a04874579d194f7f039b77bfcbcf33ed0c6 (diff) | |
download | dexon-sol-tools-f4cc152cfb6da5c13d2d95ccd2f1a022af9b91a0.tar dexon-sol-tools-f4cc152cfb6da5c13d2d95ccd2f1a022af9b91a0.tar.gz dexon-sol-tools-f4cc152cfb6da5c13d2d95ccd2f1a022af9b91a0.tar.bz2 dexon-sol-tools-f4cc152cfb6da5c13d2d95ccd2f1a022af9b91a0.tar.lz dexon-sol-tools-f4cc152cfb6da5c13d2d95ccd2f1a022af9b91a0.tar.xz dexon-sol-tools-f4cc152cfb6da5c13d2d95ccd2f1a022af9b91a0.tar.zst dexon-sol-tools-f4cc152cfb6da5c13d2d95ccd2f1a022af9b91a0.zip |
chore: remove wallet panel content for mobile
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r-- | packages/instant/src/components/install_wallet_panel_content.tsx | 52 |
1 files changed, 1 insertions, 51 deletions
diff --git a/packages/instant/src/components/install_wallet_panel_content.tsx b/packages/instant/src/components/install_wallet_panel_content.tsx index 3cc5ccc6b..88c26f59c 100644 --- a/packages/instant/src/components/install_wallet_panel_content.tsx +++ b/packages/instant/src/components/install_wallet_panel_content.tsx @@ -1,19 +1,15 @@ import * as React from 'react'; import { - COINBASE_WALLET_ANDROID_APP_STORE_URL, - COINBASE_WALLET_IOS_APP_STORE_URL, - COINBASE_WALLET_SITE_URL, META_MASK_CHROME_STORE_URL, META_MASK_FIREFOX_STORE_URL, META_MASK_OPERA_STORE_URL, META_MASK_SITE_URL, } from '../constants'; import { ColorOption } from '../style/theme'; -import { Browser, OperatingSystem } from '../types'; +import { Browser } from '../types'; import { envUtil } from '../util/env'; -import { CoinbaseWalletLogo } from './coinbase_wallet_logo'; import { MetaMaskLogo } from './meta_mask_logo'; import { StandardPanelContent, StandardPanelContentProps } from './standard_panel_content'; import { Button } from './ui/button'; @@ -26,14 +22,6 @@ export class InstallWalletPanelContent extends React.Component<InstallWalletPane return <StandardPanelContent {...panelProps} />; } private readonly _getStandardPanelContentProps = (): StandardPanelContentProps => { - const isMobileOS = envUtil.isMobileOperatingSystem(); - if (isMobileOS) { - return this._getMobilePanelContentProps(); - } else { - return this._getDesktopPanelContentProps(); - } - }; - private readonly _getDesktopPanelContentProps = (): StandardPanelContentProps => { const browser = envUtil.getBrowser(); let description = 'Please install the MetaMask wallet browser extension.'; let actionText = 'Learn More'; @@ -77,42 +65,4 @@ export class InstallWalletPanelContent extends React.Component<InstallWalletPane ), }; }; - private readonly _getMobilePanelContentProps = (): StandardPanelContentProps => { - const operatingSystem = envUtil.getOperatingSystem(); - let description = 'Please install the Coinbase Wallet app.'; - let actionText = 'Learn More'; - let actionUrl = COINBASE_WALLET_SITE_URL; - switch (operatingSystem) { - case OperatingSystem.Android: - description = 'Please install the Coinbase Wallet app from the Google Play Store.'; - actionText = 'Get Coinbase Wallet'; - actionUrl = COINBASE_WALLET_ANDROID_APP_STORE_URL; - break; - case OperatingSystem.iOS: - description = 'Please install the Coinbase Wallet app from the iOS App Store.'; - actionText = 'Get Coinbase Wallet'; - actionUrl = COINBASE_WALLET_IOS_APP_STORE_URL; - break; - default: - break; - } - return { - image: <CoinbaseWalletLogo width={246} />, - description, - moreInfoSettings: { - href: COINBASE_WALLET_SITE_URL, - text: 'What is Coinbase Wallet?', - }, - action: ( - <Button - href={actionUrl} - width="100%" - fontColor={ColorOption.white} - backgroundColor={ColorOption.darkBlue} - > - {actionText} - </Button> - ), - }; - }; } |