From 864e97677293b78bcbee4beb0a9561307cfa68ab Mon Sep 17 00:00:00 2001 From: Thebora Kompanioni Date: Wed, 29 Jul 2026 16:20:06 +0200 Subject: [PATCH] ui(xpub): colored labels on xpub dialog (#1372) --- .../earn/fidelity-bond/FidelityBondDialogParts.tsx | 1 + src/components/settings/AccountXpubsDialog.tsx | 5 +++-- src/i18n/locales/en/translation.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/earn/fidelity-bond/FidelityBondDialogParts.tsx b/src/components/earn/fidelity-bond/FidelityBondDialogParts.tsx index 9174958c..165ce050 100644 --- a/src/components/earn/fidelity-bond/FidelityBondDialogParts.tsx +++ b/src/components/earn/fidelity-bond/FidelityBondDialogParts.tsx @@ -61,6 +61,7 @@ export function JarBadge({ jarIndex, name }: { jarIndex: JarIndex | undefined; n {name} #{jarIndex} ) : ( + /* TODO: i18n - move key to different namespace*/ t('earn.fidelity_bond.review_inputs.label_jar_n', { jar: jarIndex }) )} diff --git a/src/components/settings/AccountXpubsDialog.tsx b/src/components/settings/AccountXpubsDialog.tsx index 699da46a..668ff9cc 100644 --- a/src/components/settings/AccountXpubsDialog.tsx +++ b/src/components/settings/AccountXpubsDialog.tsx @@ -26,6 +26,7 @@ import { withQueryDelay } from '@/lib/queryClient' import { cn, type WalletFileName } from '@/lib/utils' import { convertExtendedPublicKey } from '@/lib/xpubs' import type { JarIndex, Milliseconds, MnemonicPhrase, WithRequiredProperty } from '@/types/global' +import { JarBadge } from '../earn/fidelity-bond/FidelityBondDialogParts' import { Alert, AlertDescription, AlertTitle } from '../ui/alert' import { Badge } from '../ui/badge' import { buttonVariants } from '../ui/button-variants' @@ -173,9 +174,9 @@ export const AccountXpubsAccordion = ({ values }: AccountXpubsAccordionProps) => - {account.accountName} + {accountLabel} - {accountLabel} +