feat: add bank balance to accounts chart table

This commit is contained in:
Ahmed Bouhuolia
2024-02-04 22:16:59 +02:00
parent 2e0b3d0d5e
commit c688190acc
6 changed files with 59 additions and 4 deletions

View File

@@ -116,3 +116,16 @@ export function BalanceCell({ cell }) {
<span class="placeholder"></span>
);
}
/**
* Balance cell.
*/
export function BankBalanceCell({ cell }) {
const account = cell.row.original;
return account.amount !== null ? (
<span>{account.bank_balance_formatted}</span>
) : (
<span class="placeholder"></span>
);
}