diff --git a/packages/desktop-client/src/components/mobile/accounts/Accounts.jsx b/packages/desktop-client/src/components/mobile/accounts/Accounts.jsx index 6084b3713df..b914bc5c1b8 100644 --- a/packages/desktop-client/src/components/mobile/accounts/Accounts.jsx +++ b/packages/desktop-client/src/components/mobile/accounts/Accounts.jsx @@ -8,7 +8,7 @@ import { useAccounts } from '../../../hooks/useAccounts'; import { useFailedAccounts } from '../../../hooks/useFailedAccounts'; import { useNavigate } from '../../../hooks/useNavigate'; import { useSyncedPref } from '../../../hooks/useSyncedPref'; -import { SvgAdd } from '../../../icons/v1'; +import { SvgAdd, SvgCheveronRight } from '../../../icons/v1'; import { theme, styles } from '../../../style'; import { makeAmountFullStyle } from '../../budget/util'; import { Button } from '../../common/Button2'; @@ -20,36 +20,48 @@ import { CellValue, CellValueText } from '../../spreadsheet/CellValue'; import { MOBILE_NAV_HEIGHT } from '../MobileNavTabs'; import { PullToRefresh } from '../PullToRefresh'; -function AccountHeader({ name, amount, style = {} }) { +function AccountHeader({ id, name, amount, style = {} }) { + const navigate = useNavigate(); + return ( - navigate(`/accounts/${id}`)} style={{ flex: 1, flexDirection: 'row', marginTop: 10, - marginRight: 10, + padding: 0, color: theme.pageTextLight, width: '100%', ...style, }} > - + {name} + {props => ( - + )} - + ); } @@ -186,7 +198,11 @@ function AccountList({ {budgetedAccounts.length > 0 && ( - + )} {budgetedAccounts.map(acct => ( 0 && (