aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/wallet/wallet_disconnected_item.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-25 01:11:56 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-26 03:03:18 +0800
commitb49148ec54886b11042e42eed9ad4e8793840775 (patch)
treea5ee61ed5ac86de14a60fef9c00e9550b78b0474 /packages/website/ts/components/wallet/wallet_disconnected_item.tsx
parentc7f5e77b3fe7c1805202a5b1e1e1ce1e9d31a6b0 (diff)
downloaddexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.tar.gz
dexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.tar.zst
dexon-sol-tools-b49148ec54886b11042e42eed9ad4e8793840775.zip
Implement metamask installation flow
Diffstat (limited to 'packages/website/ts/components/wallet/wallet_disconnected_item.tsx')
-rw-r--r--packages/website/ts/components/wallet/wallet_disconnected_item.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/wallet/wallet_disconnected_item.tsx b/packages/website/ts/components/wallet/wallet_disconnected_item.tsx
index d334f1748..39a62e1fb 100644
--- a/packages/website/ts/components/wallet/wallet_disconnected_item.tsx
+++ b/packages/website/ts/components/wallet/wallet_disconnected_item.tsx
@@ -6,6 +6,7 @@ import * as React from 'react';
import { ProviderType } from 'ts/types';
import { colors } from 'ts/utils/colors';
import { constants } from 'ts/utils/constants';
+import { utils } from 'ts/utils/utils';
export interface WalletDisconnectedItemProps {
providerType: ProviderType;
@@ -38,8 +39,7 @@ const BUTTON_BOTTOM_PADDING = 80;
export const WalletDisconnectedItem: React.StatelessComponent<WalletDisconnectedItemProps> = (
props: WalletDisconnectedItemProps,
) => {
- const isExternallyInjectedProvider =
- props.providerType === ProviderType.Injected && props.injectedProviderName !== '0x Public';
+ const isExternallyInjectedProvider = utils.isExternallyInjected(props.providerType, props.injectedProviderName);
return (
<div className="flex flex-center">
<div className="mx-auto">