Skip to content

Commit adbfce2

Browse files
committed
[NEB-238] Show ENS name in selected account badge
1 parent 4978243 commit adbfce2

File tree

1 file changed

+15
-3
lines changed
  • apps/dashboard/src/app/nebula-app/(app)/components

1 file changed

+15
-3
lines changed

apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,19 @@ function WalletSelector(props: {
484484
<AccountBlobbie className="size-3 rounded-full" />
485485
}
486486
/>
487-
{shortenAddress(props.selectedAddress)}
487+
<AccountName
488+
className="text-xs"
489+
loadingComponent={
490+
<span className="text-xs">
491+
{shortenAddress(props.selectedAddress)}
492+
</span>
493+
}
494+
fallbackComponent={
495+
<span className="text-xs">
496+
{shortenAddress(props.selectedAddress)}
497+
</span>
498+
}
499+
/>
488500
<ChevronDownIcon className="size-3 text-muted-foreground/70" />
489501
</AccountProvider>
490502
</Button>
@@ -533,12 +545,12 @@ function WalletSelector(props: {
533545
<AccountName
534546
className="text-sm"
535547
loadingComponent={
536-
<span className="font-mono text-sm">
548+
<span className="text-sm">
537549
{shortenAddress(wallet.address)}
538550
</span>
539551
}
540552
fallbackComponent={
541-
<span className="font-mono text-sm">
553+
<span className="text-sm">
542554
{shortenAddress(wallet.address)}
543555
</span>
544556
}

0 commit comments

Comments
 (0)