diff --git a/client/src/pages/AnnualOverview.jsx b/client/src/pages/AnnualOverview.jsx index f28d012..fdf4920 100644 --- a/client/src/pages/AnnualOverview.jsx +++ b/client/src/pages/AnnualOverview.jsx @@ -1,5 +1,214 @@ -function AnnualOverview() { - return
Placeholder — coming soon.
Loading…
} + {error &&Error: {error}
} + + {/* Monthly table */} +| Month | +Income (net) | +Bills | +Variable | +One-time | +Total Spending | +Surplus / Deficit | +
|---|---|---|---|---|---|---|
| {name} | ++ {hasRow ? fmt(row.total_income) : '—'} + | ++ {hasRow ? fmt(row.total_bills) : '—'} + | ++ {hasRow ? fmt(row.total_variable) : '—'} + | ++ {hasRow ? fmt(row.total_one_time) : '—'} + | ++ {hasRow ? fmt(row.total_spending) : '—'} + | ++ {hasRow ? fmt(surplus) : '—'} + | +
| Total | ++ {hasData ? fmt(annualIncome) : '—'} + | ++ {hasData ? fmt(annualBills) : '—'} + | ++ {hasData ? fmt(annualVariable) : '—'} + | ++ {hasData ? fmt(annualOneTime) : '—'} + | ++ {hasData ? fmt(annualSpending) : '—'} + | ++ {hasData ? fmt(annualSurplus) : '—'} + | +