From 5372188763a436906aa146119672603ef59ba654 Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Tue, 4 Jun 2024 18:55:06 +0200 Subject: [PATCH] ui(wallet): rephrase wallet label from 'unlocked' to 'active' --- src/components/Wallet.test.tsx | 6 +++--- src/components/Wallet.tsx | 2 +- src/components/Wallets.test.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Wallet.test.tsx b/src/components/Wallet.test.tsx index d64a709b..9757be66 100644 --- a/src/components/Wallet.test.tsx +++ b/src/components/Wallet.test.tsx @@ -90,7 +90,7 @@ describe('', () => { ) expect(screen.getByText(walletDisplayName(dummyWalletFileName))).toBeInTheDocument() - expect(screen.getByText('wallets.wallet_preview.wallet_unlocked')).toBeInTheDocument() + expect(screen.getByText('wallets.wallet_preview.wallet_active')).toBeInTheDocument() expect(screen.queryByPlaceholderText('wallets.wallet_preview.placeholder_password')).toBeInTheDocument() expect(screen.queryByText('wallets.wallet_preview.button_unlock')).toBeInTheDocument() expect(screen.queryByText('wallets.wallet_preview.button_open')).not.toBeInTheDocument() @@ -107,7 +107,7 @@ describe('', () => { ) expect(screen.getByText(walletDisplayName(dummyWalletFileName))).toBeInTheDocument() - expect(screen.getByText('wallets.wallet_preview.wallet_unlocked')).toBeInTheDocument() + expect(screen.getByText('wallets.wallet_preview.wallet_active')).toBeInTheDocument() expect(screen.getByText('wallets.wallet_preview.button_open')).toBeInTheDocument() expect(screen.getByText('wallets.wallet_preview.button_lock')).toBeInTheDocument() expect(screen.queryByPlaceholderText('wallets.wallet_preview.placeholder_password')).not.toBeInTheDocument() @@ -123,7 +123,7 @@ describe('', () => { }), ) - expect(screen.getByText('wallets.wallet_preview.wallet_unlocked')).toBeInTheDocument() + expect(screen.getByText('wallets.wallet_preview.wallet_active')).toBeInTheDocument() expect(screen.getByText('wallets.wallet_preview.button_lock')).toBeInTheDocument() const lockWalletButton = screen.getByText('wallets.wallet_preview.button_lock') diff --git a/src/components/Wallet.tsx b/src/components/Wallet.tsx index 9246026b..6f1a1d78 100644 --- a/src/components/Wallet.tsx +++ b/src/components/Wallet.tsx @@ -189,7 +189,7 @@ export default function Wallet({ {isActive ? ( - {t('wallets.wallet_preview.wallet_unlocked')} + {t('wallets.wallet_preview.wallet_active')} ) : ( {t('wallets.wallet_preview.wallet_locked')} )} diff --git a/src/components/Wallets.test.tsx b/src/components/Wallets.test.tsx index b083bc49..4b7f8e66 100644 --- a/src/components/Wallets.test.tsx +++ b/src/components/Wallets.test.tsx @@ -344,7 +344,7 @@ describe('', () => { }), ) - expect(screen.getByText('wallets.wallet_preview.wallet_unlocked')).toBeInTheDocument() + expect(screen.getByText('wallets.wallet_preview.wallet_active')).toBeInTheDocument() expect(screen.getByText('wallets.wallet_preview.button_lock')).toBeInTheDocument() const lockWalletButton = screen.getByText('wallets.wallet_preview.button_lock') @@ -393,7 +393,7 @@ describe('', () => { }), ) - expect(screen.getByText('wallets.wallet_preview.wallet_unlocked')).toBeInTheDocument() + expect(screen.getByText('wallets.wallet_preview.wallet_active')).toBeInTheDocument() expect(screen.getByText('wallets.wallet_preview.button_lock')).toBeInTheDocument() const lockWalletButton = screen.getByText('wallets.wallet_preview.button_lock')