From 96a96498b9a970b6b096efb89eed39a80b397f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Tue, 24 Feb 2026 14:19:13 -0300 Subject: [PATCH] fix: restore SuperAdmin page to valid mock state --- pages/SuperAdmin.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pages/SuperAdmin.tsx b/pages/SuperAdmin.tsx index 473bc88..8c94b6d 100644 --- a/pages/SuperAdmin.tsx +++ b/pages/SuperAdmin.tsx @@ -1,16 +1,13 @@ import React, { useState, useMemo } from 'react'; import { - Building2, Users, MessageSquare, Plus, Search, MoreHorizontal, - Edit, Trash2, Shield, Calendar, ChevronDown, ChevronUp, ChevronsUpDown, X + Building2, Users, MessageSquare, Plus, Search, + Edit, Trash2, ChevronDown, ChevronUp, ChevronsUpDown, X } from 'lucide-react'; -import { TENANTS, MOCK_ATTENDANCES, USERS } from '../constants'; +import { TENANTS } from '../constants'; import { Tenant } from '../types'; import { DateRangePicker } from '../components/DateRangePicker'; import { KPICard } from '../components/KPICard'; -// Reusing KPICard but simplifying logic for this view if needed -// We can use the existing KPICard component. - export const SuperAdmin: React.FC = () => { const [dateRange, setDateRange] = useState({ start: new Date(Date.now() - 30 * 24 * 60 * 60 * 1000), @@ -28,7 +25,6 @@ export const SuperAdmin: React.FC = () => { // --- Metrics --- const totalTenants = tenants.length; - // Mock aggregation for demo const totalUsersGlobal = tenants.reduce((acc, t) => acc + (t.user_count || 0), 0); const totalAttendancesGlobal = tenants.reduce((acc, t) => acc + (t.attendance_count || 0), 0);