ui(xpub): colored labels on xpub dialog (#1372)

This commit is contained in:
Thebora Kompanioni 2026-07-29 16:20:06 +02:00 committed by GitHub
parent ff0a9f229e
commit 864e976772
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -61,6 +61,7 @@ export function JarBadge({ jarIndex, name }: { jarIndex: JarIndex | undefined; n
{name} <span>#{jarIndex}</span>
</>
) : (
/* TODO: i18n - move key to different namespace*/
t('earn.fidelity_bond.review_inputs.label_jar_n', { jar: jarIndex })
)}
</Badge>

View file

@ -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) =>
<AccordionItem key={index} value={String(account.accountIndex)}>
<AccordionTrigger className="group/xpub-accordion-trigger flex-wrap px-4 no-underline!">
<span className="min-w-0 flex-1 flex-col break-words group-hover/xpub-accordion-trigger:underline">
{account.accountName}
{accountLabel}
</span>
<span className="text-muted-foreground shrink-0 font-mono">{accountLabel}</span>
<JarBadge jarIndex={account.accountIndex} name={account.accountName} />
</AccordionTrigger>
<AccordionContent className="flex flex-col gap-1 p-4 pt-2">
<Label className="text-muted-foreground text-sm">

View file

@ -335,7 +335,7 @@
"text_info_title": "Keep in mind",
"text_info_message": "Account-level extended public keys can be imported into watch-only wallets for monitoring. They reveal all addresses in the derivation path. Share them with caution.",
"button_copy_title": "Copy Extended Public Key for {{account}}",
"button_reveal_xpub_qrcode": "Reveal xpub QR-Code"
"button_reveal_xpub_qrcode": "Reveal QR-Code"
},
"documentation": "Documentation",
"github": "GitHub",