diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-11-15 07:20:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 07:20:49 +0800 |
commit | 8afcba7ba16382fd656518e8de3b55267e0f7722 (patch) | |
tree | 80456455c6e2a72956c481fb5e02898f556337a8 /packages/instant/src/components/payment_method_dropdown.tsx | |
parent | 2eef766aff1d0d1b13af9a28f28d38bb722996d1 (diff) | |
parent | fe23bf9e51dab87ee8c8995a9d53438daff19ea0 (diff) | |
download | dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.gz dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.bz2 dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.lz dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.xz dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.tar.zst dexon-sol-tools-8afcba7ba16382fd656518e8de3b55267e0f7722.zip |
Merge pull request #1257 from 0xProject/feature/instant/different-install-wallet-copy-for-mobile
[instant] Adapt content to operating system, browser and provider type
Diffstat (limited to 'packages/instant/src/components/payment_method_dropdown.tsx')
-rw-r--r-- | packages/instant/src/components/payment_method_dropdown.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/instant/src/components/payment_method_dropdown.tsx b/packages/instant/src/components/payment_method_dropdown.tsx index 58f1cc044..b330dbcd6 100644 --- a/packages/instant/src/components/payment_method_dropdown.tsx +++ b/packages/instant/src/components/payment_method_dropdown.tsx @@ -3,6 +3,7 @@ import copy from 'copy-to-clipboard'; import * as React from 'react'; import { Network } from '../types'; +import { envUtil } from '../util/env'; import { etherscanUtil } from '../util/etherscan'; import { format } from '../util/format'; @@ -22,6 +23,9 @@ export class PaymentMethodDropdown extends React.Component<PaymentMethodDropdown return <Dropdown value={value} label={label} items={this._getDropdownItemConfigs()} />; } private readonly _getDropdownItemConfigs = (): DropdownItemConfig[] => { + if (envUtil.isMobileOperatingSystem()) { + return []; + } const viewOnEtherscan = { text: 'View on Etherscan', onClick: this._handleEtherscanClick, |