diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-14 11:34:34 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-14 11:34:34 +0800 |
commit | 921ef90a14003ff72f8a11d00519806251e85778 (patch) | |
tree | c4ae6acf44293289ffdb284af5dba370c607758b /packages/instant | |
parent | 1a1caa1ca21f3e86985bb18be233c3efcade52d1 (diff) | |
download | dexon-0x-contracts-921ef90a14003ff72f8a11d00519806251e85778.tar dexon-0x-contracts-921ef90a14003ff72f8a11d00519806251e85778.tar.gz dexon-0x-contracts-921ef90a14003ff72f8a11d00519806251e85778.tar.bz2 dexon-0x-contracts-921ef90a14003ff72f8a11d00519806251e85778.tar.lz dexon-0x-contracts-921ef90a14003ff72f8a11d00519806251e85778.tar.xz dexon-0x-contracts-921ef90a14003ff72f8a11d00519806251e85778.tar.zst dexon-0x-contracts-921ef90a14003ff72f8a11d00519806251e85778.zip |
feat: dont show payment dropdown content on mobile
Diffstat (limited to 'packages/instant')
-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, |