From 3b8e12e7ef3147617a927c34a87d6654063bed18 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Wed, 10 Apr 2019 11:44:58 +0200 Subject: [PATCH] add navigation constants --- .../components/TopNavigationAccount/constants/navigation.js | 3 +++ src/views/Wallet/components/TopNavigationAccount/index.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/views/Wallet/components/TopNavigationAccount/constants/navigation.js diff --git a/src/views/Wallet/components/TopNavigationAccount/constants/navigation.js b/src/views/Wallet/components/TopNavigationAccount/constants/navigation.js new file mode 100644 index 00000000..4556a03a --- /dev/null +++ b/src/views/Wallet/components/TopNavigationAccount/constants/navigation.js @@ -0,0 +1,3 @@ +export default { + HAS_SIGN_VERIFY: ['ethereum', 'bitcoin'], +}; diff --git a/src/views/Wallet/components/TopNavigationAccount/index.js b/src/views/Wallet/components/TopNavigationAccount/index.js index b4847f4f..d25ff210 100644 --- a/src/views/Wallet/components/TopNavigationAccount/index.js +++ b/src/views/Wallet/components/TopNavigationAccount/index.js @@ -8,6 +8,7 @@ import { connect } from 'react-redux'; import { colors } from 'trezor-ui-components'; import type { State } from 'flowtype'; import { FormattedMessage } from 'react-intl'; +import navigationConstants from './constants/navigation'; import l10nMessages from './index.messages'; import Indicator from './components/Indicator'; @@ -108,7 +109,7 @@ class TopNavigationAccount extends React.PureComponent { - {network.type === 'ethereum' && ( + {navigationConstants.HAS_SIGN_VERIFY.includes(network.type) && (