Skip to content

Commit

Permalink
fix: show active state in accountpicker
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdwm committed Dec 31, 2024
1 parent 7adfb59 commit e851a59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/portal/src/components/widgets/AccountsManagementMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const AccountsManagementMenu = Object.assign(

const portfolioAccounts = useRecoilValue(portfolioAccountsState)
const readonlyAccounts = useRecoilValue(readOnlyAccountsState)
const selectedAddresses = useRecoilValue(selectedAccountAddressesState)

const getFiatBalanceLoadable = useRecoilValueLoadable(fiatBalanceGetterState)

Expand Down Expand Up @@ -178,6 +179,7 @@ export const AccountsManagementMenu = Object.assign(
{portfolioAccounts.map((x, index) => (
<Menu.Item.Button
key={index}
className={selectedAddresses?.includes(x.address) ? 'bg-primary/5' : ''}
headlineContent={Maybe.of(getFiatBalanceLoadable.valueMaybe()?.(x.address)).mapOr(
<CircularProgressIndicator size="1em" />,
balance => (
Expand Down

0 comments on commit e851a59

Please sign in to comment.