mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 21:48:18 +00:00
feat: ( dashboard ) add booking charts
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user