feat: enhance API response handling and add new components for module management
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 4m50s
Workflow / ⚫️ Test (push) Has been skipped

This commit is contained in:
T. Zehetbauer
2026-04-01 15:18:24 +02:00
parent f82a366a52
commit 7b078f298b
58 changed files with 1845 additions and 398 deletions

View File

@@ -35,10 +35,12 @@ export default async function PaymentsPage({ params }: PageProps) {
const api = createFinanceApi(client);
const [batches, invoices] = await Promise.all([
const [batchesResult, invoicesResult] = await Promise.all([
api.listBatches(acct.id),
api.listInvoices(acct.id),
]);
const batches = batchesResult.data;
const invoices = invoicesResult.data;
const paidInvoices = invoices.filter(
(inv: Record<string, unknown>) => inv.status === 'paid',