Add returning customers stat to admin users page

Introduces a new 'Returning Customers' card to the admin users dashboard, showing the count and percentage of users with more than one order. Also updates the grid layout to accommodate the new card and imports the necessary icon.
This commit is contained in:
g
2025-12-01 13:28:04 +00:00
parent 93214ce9d6
commit 98f14304b7
3 changed files with 24 additions and 3 deletions

View File

@@ -12,7 +12,6 @@ import { fetchClient } from "@/lib/api-client";
import { BarChart as RechartsBarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, LineChart, Line, ComposedChart } from 'recharts';
import { formatGBP } from "@/utils/format";
// API response data structure
interface AnalyticsData {
vendors?: {
total?: number;