diff --git a/packages/desktop-client/src/components/mobile/accounts/Accounts.tsx b/packages/desktop-client/src/components/mobile/accounts/Accounts.tsx index 33b1d2716b3..497bdac4a46 100644 --- a/packages/desktop-client/src/components/mobile/accounts/Accounts.tsx +++ b/packages/desktop-client/src/components/mobile/accounts/Accounts.tsx @@ -3,7 +3,12 @@ import React, { type CSSProperties, useCallback, } from 'react'; -import { ListBox, ListBoxItem, useDragAndDrop } from 'react-aria-components'; +import { + DropIndicator, + ListBox, + ListBoxItem, + useDragAndDrop, +} from 'react-aria-components'; import { useTranslation, Trans } from 'react-i18next'; import { useListData } from 'react-stately'; @@ -136,79 +141,76 @@ function AccountListItem({ return ( - {({ isDropTarget }) => ( - - )} + + + {props => ( + + {...props} + style={{ + fontSize: 16, + ...makeAmountFullStyle(props.value), + }} + data-testid="account-balance" + /> + )} + + ); } @@ -339,14 +341,14 @@ function AccountList({ [...keys].map(key => ({ 'text/plain': accountListData.getItem(key).id, })), - renderDropIndicator() { + renderDropIndicator(target) { return ( - );