From d99a985ab4d198b5df501b4230bf1a88914f6517 Mon Sep 17 00:00:00 2001 From: MananTank Date: Mon, 12 May 2025 20:54:35 +0000 Subject: [PATCH] [NEB-238] Show ENS name in selected account badge (#7024) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## 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}` --- .../nebula-app/(app)/components/ChatBar.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx b/apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx index d2137775e82..4d7949350f0 100644 --- a/apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx +++ b/apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx @@ -484,7 +484,19 @@ function WalletSelector(props: { } /> - {shortenAddress(props.selectedAddress)} + + {shortenAddress(props.selectedAddress)} + + } + fallbackComponent={ + + {shortenAddress(props.selectedAddress)} + + } + /> @@ -533,12 +545,12 @@ function WalletSelector(props: { + {shortenAddress(wallet.address)} } fallbackComponent={ - + {shortenAddress(wallet.address)} }