mirror of
https://github.com/trezor/trezor-wallet
synced 2025-03-21 02:26:13 +00:00
use different CTA for passphrase_always_on_device
This commit is contained in:
parent
75393c22aa
commit
d70afe0d04
@ -68,6 +68,10 @@ class MenuItems extends PureComponent {
|
||||
render() {
|
||||
if (!this.showDeviceMenu()) return null;
|
||||
const { device } = this.props;
|
||||
const changeWalletButton =
|
||||
device.features && device.features.passphrase_always_on_device
|
||||
? l10nMessages.TR_CHANGE_PASSPHRASE
|
||||
: l10nMessages.TR_CHANGE_WALLET_TYPE;
|
||||
return (
|
||||
<Wrapper>
|
||||
{/* <Item onClick={() => {
|
||||
@ -92,7 +96,7 @@ class MenuItems extends PureComponent {
|
||||
/>
|
||||
</IconWrapper>
|
||||
<Label>
|
||||
<FormattedMessage {...l10nMessages.TR_CHANGE_WALLET_TYPE} />
|
||||
<FormattedMessage {...changeWalletButton} />
|
||||
</Label>
|
||||
</Item>
|
||||
)}
|
||||
|
@ -7,6 +7,10 @@ const definedMessages: Messages = defineMessages({
|
||||
id: 'TR_CHANGE_WALLET_TYPE',
|
||||
defaultMessage: 'Change wallet type',
|
||||
},
|
||||
TR_CHANGE_PASSPHRASE: {
|
||||
id: 'TR_CHANGE_PASSPHRASE',
|
||||
defaultMessage: 'Change passphrase',
|
||||
},
|
||||
TR_RENEW_SESSION: {
|
||||
id: 'TR_RENEW_SESSION',
|
||||
defaultMessage: 'Renew session',
|
||||
|
Loading…
Reference in New Issue
Block a user