1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-30 12:18:09 +00:00

add navigation constants

This commit is contained in:
Vladimir Volek 2019-04-10 11:44:58 +02:00
parent d7568a7b40
commit 3b8e12e7ef
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,3 @@
export default {
HAS_SIGN_VERIFY: ['ethereum', 'bitcoin'],
};

View File

@ -8,6 +8,7 @@ import { connect } from 'react-redux';
import { colors } from 'trezor-ui-components'; import { colors } from 'trezor-ui-components';
import type { State } from 'flowtype'; import type { State } from 'flowtype';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import navigationConstants from './constants/navigation';
import l10nMessages from './index.messages'; import l10nMessages from './index.messages';
import Indicator from './components/Indicator'; import Indicator from './components/Indicator';
@ -108,7 +109,7 @@ class TopNavigationAccount extends React.PureComponent<Props, LocalState> {
<StyledNavLink to={`${basePath}/send`}> <StyledNavLink to={`${basePath}/send`}>
<FormattedMessage {...l10nMessages.TR_NAV_SEND} /> <FormattedMessage {...l10nMessages.TR_NAV_SEND} />
</StyledNavLink> </StyledNavLink>
{network.type === 'ethereum' && ( {navigationConstants.HAS_SIGN_VERIFY.includes(network.type) && (
<StyledNavLink to={`${basePath}/signverify`}> <StyledNavLink to={`${basePath}/signverify`}>
<FormattedMessage {...l10nMessages.TR_NAV_SIGN_AND_VERIFY} /> <FormattedMessage {...l10nMessages.TR_NAV_SIGN_AND_VERIFY} />
</StyledNavLink> </StyledNavLink>