mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 02:38:18 +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 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<Props, LocalState> {
|
||||
<StyledNavLink to={`${basePath}/send`}>
|
||||
<FormattedMessage {...l10nMessages.TR_NAV_SEND} />
|
||||
</StyledNavLink>
|
||||
{network.type === 'ethereum' && (
|
||||
{navigationConstants.HAS_SIGN_VERIFY.includes(network.type) && (
|
||||
<StyledNavLink to={`${basePath}/signverify`}>
|
||||
<FormattedMessage {...l10nMessages.TR_NAV_SIGN_AND_VERIFY} />
|
||||
</StyledNavLink>
|
||||
|
Loading…
Reference in New Issue
Block a user