feat: ( dashboard ) add booking charts

This commit is contained in:
Abubeker Yasin
2026-08-13 23:31:20 +03:00
parent 62b2080aaf
commit 449dea78ab
4 changed files with 537 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ import {
ScanLine,
} from "lucide-react";
import { dashboardApi } from "@/lib/api/dashboard";
import DashboardBookingCharts from "@/components/dashboard/DashboardBookingCharts";
import { apiClient } from "@/lib/api-client";
import { formatCurrency } from "@/lib/utils";
import { PieChart, Pie, Cell, Tooltip, ResponsiveContainer } from "recharts";
@@ -322,6 +323,9 @@ function DashboardPageContent() {
</div>
</div>
{/* Booking charts — self-contained; degrades to a single line if its endpoint fails. */}
<DashboardBookingCharts />
{/* Revenue breakdown */}
<div className="card">
<h2 className="text-sm font-semibold uppercase tracking-widest text-muted-foreground mb-4">