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) && (