From f4cc152cfb6da5c13d2d95ccd2f1a022af9b91a0 Mon Sep 17 00:00:00 2001
From: fragosti <francesco.agosti93@gmail.com>
Date: Wed, 14 Nov 2018 16:18:16 -0800
Subject: chore: remove wallet panel content for mobile

---
 .../components/install_wallet_panel_content.tsx    | 52 +---------------------
 1 file changed, 1 insertion(+), 51 deletions(-)

(limited to 'packages/instant/src/components/install_wallet_panel_content.tsx')

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>
-            ),
-        };
-    };
 }
-- 
cgit v1.2.3

