aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-14 11:34:34 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-14 11:34:34 +0800
commit921ef90a14003ff72f8a11d00519806251e85778 (patch)
treec4ae6acf44293289ffdb284af5dba370c607758b /packages/instant/src
parent1a1caa1ca21f3e86985bb18be233c3efcade52d1 (diff)
downloaddexon-sol-tools-921ef90a14003ff72f8a11d00519806251e85778.tar.gz
dexon-sol-tools-921ef90a14003ff72f8a11d00519806251e85778.tar.zst
dexon-sol-tools-921ef90a14003ff72f8a11d00519806251e85778.zip
feat: dont show payment dropdown content on mobile
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/components/payment_method_dropdown.tsx4
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,