Skip to content

Commit d99a985

Browse files
committed
[NEB-238] Show ENS name in selected account badge (#7024)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the rendering of the `AccountName` component in the `ChatBar.tsx` file to improve the styling and structure of the address display. ### Detailed summary - Replaced `span` with `AccountName` component for displaying the selected address. - Added `className="text-xs"` to the `AccountName` component. - Updated `loadingComponent` and `fallbackComponent` to use a consistent `span` with `className="text-xs"`. - Changed `className` of `span` in `WalletSelector` from `font-mono text-sm` to `text-sm` for a consistent style. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent e74574c commit d99a985

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)