mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 10:48:22 +00:00
add navigation constants
This commit is contained in:
parent
d7568a7b40
commit
3b8e12e7ef
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
HAS_SIGN_VERIFY: ['ethereum', 'bitcoin'],
|
||||||
|
};
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user