Skip to content

Commit

Permalink
ui(wallet): rephrase wallet label from 'unlocked' to 'active'
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Jun 4, 2024
1 parent fef6260 commit 5372188
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/Wallet.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('<Wallet />', () => {
)

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()
Expand All @@ -107,7 +107,7 @@ describe('<Wallet />', () => {
)

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()
Expand All @@ -123,7 +123,7 @@ describe('<Wallet />', () => {
}),
)

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')
Expand Down
2 changes: 1 addition & 1 deletion src/components/Wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default function Wallet({
</rb.Card.Title>

{isActive ? (
<span className="text-success">{t('wallets.wallet_preview.wallet_unlocked')}</span>
<span className="text-success">{t('wallets.wallet_preview.wallet_active')}</span>
) : (
<span className="text-muted">{t('wallets.wallet_preview.wallet_locked')}</span>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Wallets.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ describe('<Wallets />', () => {
}),
)

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')
Expand Down Expand Up @@ -393,7 +393,7 @@ describe('<Wallets />', () => {
}),
)

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')
Expand Down

0 comments on commit 5372188

Please sign in to comment.