From dd4ffff3ccc240f8d75dd7cb585dd3b0a5e5105d Mon Sep 17 00:00:00 2001 From: kenilkb Date: Fri, 10 Jul 2026 19:44:53 +0530 Subject: [PATCH] dashboard_remove_client_stats_cards_and_reflow_grid --- Channel-Frontend/src/pages/DashboardPage.tsx | 38 ++++++++++---------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/Channel-Frontend/src/pages/DashboardPage.tsx b/Channel-Frontend/src/pages/DashboardPage.tsx index 812d25e..cb29fc4 100644 --- a/Channel-Frontend/src/pages/DashboardPage.tsx +++ b/Channel-Frontend/src/pages/DashboardPage.tsx @@ -81,27 +81,29 @@ export const DashboardPage = () => { className="p-5 space-y-6 flex flex-col min-h-0 flex-1 overflow-y-auto" > {/* Stats Grid */} - - {[ - { label: 'Global Network Uptime', value: '99.99%', icon: Activity, trend: '+0.01%' }, - { label: 'Active Data Streams', value: '1,492', icon: Zap, trend: '+12%' }, - { label: 'Security Compliance', value: 'Level 4', icon: ShieldCheck, trend: 'Verified' } - ].map((stat, i) => ( -
-
- + {user?.role === 'ADMIN' && ( + + {[ + { label: 'Global Network Uptime', value: '99.99%', icon: Activity, trend: '+0.01%' }, + { label: 'Active Data Streams', value: '1,492', icon: Zap, trend: '+12%' }, + { label: 'Security Compliance', value: 'Level 4', icon: ShieldCheck, trend: 'Verified' } + ].map((stat, i) => ( +
+
+ +
+

{stat.label}

+
+

{stat.value}

+ {stat.trend} +
-

{stat.label}

-
-

{stat.value}

- {stat.trend} -
-
- ))} - + ))} + + )} {/* Main Action Cards */} - + {CARDS.map((card, idx) => (