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);