From 4582538917993ca41c860a7dcfc64c4215554897 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Mon, 8 Apr 2019 18:15:20 +0200 Subject: [PATCH] disable sign n verify tab for imported accounts --- src/views/Wallet/components/TopNavigationAccount/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/Wallet/components/TopNavigationAccount/index.js b/src/views/Wallet/components/TopNavigationAccount/index.js index b4847f4f..8d2e1951 100644 --- a/src/views/Wallet/components/TopNavigationAccount/index.js +++ b/src/views/Wallet/components/TopNavigationAccount/index.js @@ -90,9 +90,11 @@ class TopNavigationAccount extends React.PureComponent { render() { const { state, pathname } = this.props.router.location; if (!state) return null; - const { network } = this.props.selectedAccount; + const { network, account } = this.props.selectedAccount; if (!network) return null; + const isAccountImported = account && account.imported; + const basePath = `/device/${state.device}/network/${state.network}/account/${ state.account }`; @@ -108,7 +110,7 @@ class TopNavigationAccount extends React.PureComponent { - {network.type === 'ethereum' && ( + {network.type === 'ethereum' && !isAccountImported && (