From 696174bbc4d5ea111de675d53c20e88a5f2c58fa Mon Sep 17 00:00:00 2001 From: DeathKaioken Date: Sat, 4 Oct 2025 00:08:09 +0200 Subject: [PATCH] feature: add referral statistic to dashboard --- src/app/dashboard/page.tsx | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 8cce8dc..757b894 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -11,7 +11,8 @@ import { UserCircleIcon, StarIcon, ChartBarIcon, - HeartIcon + HeartIcon, + BuildingOffice2Icon // <-- added } from '@heroicons/react/24/outline' export default function DashboardPage() { @@ -80,6 +81,13 @@ export default function DashboardPage() { { label: 'Activity', value: '15', icon: ChartBarIcon } ] + // Referral statistics (mock values) + const referralStats = [ + { label: 'Registered Users', value: '123', icon: UsersIcon, color: 'bg-indigo-600' }, + { label: 'Personal Users', value: '85', icon: UserCircleIcon, color: 'bg-teal-600' }, + { label: 'Company Users', value: '38', icon: BuildingOffice2Icon, color: 'bg-amber-600' }, + ] + return (
@@ -132,6 +140,26 @@ export default function DashboardPage() {
+ {/* Referral Statistics */} +
+

Referral Statistics

+
+ {referralStats.map((stat, i) => ( +
+
+
+
+

{stat.label}

+
+
+

{stat.value}

+
+
+ ))} +
+
+ {/* Quick Actions */}

Quick Actions