aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-15 08:18:16 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-15 08:18:16 +0800
commitb2a26ef21a3fef2cbb4373a2896f552033af046c (patch)
tree0f070477d220a016714e3045a7f3d9f21bf7f7fe
parentd895b0296f2143452bfa3aa0c94fd0de34209435 (diff)
downloaddexon-sol-tools-b2a26ef21a3fef2cbb4373a2896f552033af046c.tar
dexon-sol-tools-b2a26ef21a3fef2cbb4373a2896f552033af046c.tar.gz
dexon-sol-tools-b2a26ef21a3fef2cbb4373a2896f552033af046c.tar.bz2
dexon-sol-tools-b2a26ef21a3fef2cbb4373a2896f552033af046c.tar.lz
dexon-sol-tools-b2a26ef21a3fef2cbb4373a2896f552033af046c.tar.xz
dexon-sol-tools-b2a26ef21a3fef2cbb4373a2896f552033af046c.tar.zst
dexon-sol-tools-b2a26ef21a3fef2cbb4373a2896f552033af046c.zip
chore: remove wallet panel content for mobile
-rw-r--r--packages/instant/src/components/install_wallet_panel_content.tsx52
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>
- ),
- };
- };
}