diff --git a/packages/desktop-client/src/components/mobile/accounts/Accounts.tsx b/packages/desktop-client/src/components/mobile/accounts/Accounts.tsx index 64bcab534de..1f408ea4c3a 100644 --- a/packages/desktop-client/src/components/mobile/accounts/Accounts.tsx +++ b/packages/desktop-client/src/components/mobile/accounts/Accounts.tsx @@ -3,6 +3,7 @@ import React, { type CSSProperties, useCallback, } from 'react'; +import { type DragItem } from 'react-aria'; import { DropIndicator, ListBox, @@ -10,7 +11,6 @@ import { useDragAndDrop, } from 'react-aria-components'; import { useTranslation, Trans } from 'react-i18next'; -import { useListData } from 'react-stately'; import { Button } from '@actual-app/components/button'; import { styles } from '@actual-app/components/styles'; @@ -121,7 +121,7 @@ type AccountListItemProps = ComponentPropsWithoutRef< isPending: boolean; isFailed: boolean; getBalanceQuery: (account: AccountEntity) => Binding<'account', 'balance'>; - onSelect: (id: string) => void; + onSelect: (account: AccountEntity) => void; }; function AccountListItem({ @@ -142,7 +142,7 @@ function AccountListItem({ return (