1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-07 14:50:52 +00:00

disable sign n verify tab for imported accounts

This commit is contained in:
slowbackspace 2019-04-08 18:15:20 +02:00
parent 4fc7f5323e
commit 4582538917

View File

@ -90,9 +90,11 @@ class TopNavigationAccount extends React.PureComponent<Props, LocalState> {
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<Props, LocalState> {
<StyledNavLink to={`${basePath}/send`}>
<FormattedMessage {...l10nMessages.TR_NAV_SEND} />
</StyledNavLink>
{network.type === 'ethereum' && (
{network.type === 'ethereum' && !isAccountImported && (
<StyledNavLink to={`${basePath}/signverify`}>
<FormattedMessage {...l10nMessages.TR_NAV_SIGN_AND_VERIFY} />
</StyledNavLink>