mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 10:48:22 +00:00
cleanup
This commit is contained in:
parent
cd0c472aed
commit
1a1a4daaa9
@ -53,40 +53,28 @@ export const getStatus = (device: TrezorDevice): string => {
|
||||
export const getStatusName = (deviceStatus: string, intl: IntlShape): string => {
|
||||
switch (deviceStatus) {
|
||||
case 'connected':
|
||||
// return 'Connected';
|
||||
return intl.formatMessage(l10nMessages.TR_CONNECTED);
|
||||
case 'disconnected':
|
||||
// return 'Disconnected';
|
||||
return intl.formatMessage(l10nMessages.TR_DISCONNECTED);
|
||||
case 'bootloader':
|
||||
// return 'Connected (bootloader mode)';
|
||||
return intl.formatMessage(l10nMessages.TR_CONNECTED_BOOTLOADER);
|
||||
case 'initialize':
|
||||
// return 'Connected (not initialized)';
|
||||
return intl.formatMessage(l10nMessages.TR_CONNECTED_NOT_INITIALIZED);
|
||||
case 'seedless':
|
||||
// return 'Connected (seedless mode)';
|
||||
return intl.formatMessage(l10nMessages.TR_CONNECTED_SEEDLESS);
|
||||
case 'firmware-required':
|
||||
// return 'Connected (update required)';
|
||||
return intl.formatMessage(l10nMessages.TR_CONNECTED_UPDATE_REQUIRED);
|
||||
case 'firmware-recommended':
|
||||
// return 'Connected (update recommended)';
|
||||
return intl.formatMessage(l10nMessages.TR_CONNECTED_UPDATE_RECOMMENDED);
|
||||
case 'used-in-other-window':
|
||||
// return 'Used in other window';
|
||||
return intl.formatMessage(l10nMessages.TR_USED_IN_ANOTHER_WINDOW);
|
||||
case 'unacquired':
|
||||
// return 'Used in other window';
|
||||
return intl.formatMessage(l10nMessages.TR_USED_IN_ANOTHER_WINDOW);
|
||||
case 'unavailable':
|
||||
// return 'Unavailable';
|
||||
return intl.formatMessage(l10nMessages.TR_UNAVAILABLE);
|
||||
case 'unreadable':
|
||||
// return 'Unreadable';
|
||||
return intl.formatMessage(l10nMessages.TR_UNREADABLE);
|
||||
default:
|
||||
// return 'Status unknown';
|
||||
return intl.formatMessage(l10nMessages.TR_STATUS_UNKNOWN);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user