|
@@ -4,6 +4,7 @@ import { MainLayout } from '@/components/layout/main-layout'
|
|
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
|
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
|
|
|
import { Button } from '@/components/ui/button'
|
|
import { Button } from '@/components/ui/button'
|
|
|
import { Users, BookOpen, GraduationCap, User, TrendingUp, Calendar, UserCheck, Clock, ChevronDown, ChevronUp } from 'lucide-react'
|
|
import { Users, BookOpen, GraduationCap, User, TrendingUp, Calendar, UserCheck, Clock, ChevronDown, ChevronUp } from 'lucide-react'
|
|
|
|
|
+import { LoadingSpinner } from '@/components/ui/spinner'
|
|
|
import { getDashboardStats, getRecentActivities, getCurrentPeriod } from './actions'
|
|
import { getDashboardStats, getRecentActivities, getCurrentPeriod } from './actions'
|
|
|
import { useState, useEffect } from 'react'
|
|
import { useState, useEffect } from 'react'
|
|
|
|
|
|
|
@@ -42,7 +43,7 @@ export default function AdminDashboard() {
|
|
|
requiredRole="ADMIN"
|
|
requiredRole="ADMIN"
|
|
|
>
|
|
>
|
|
|
<div className="flex items-center justify-center h-64">
|
|
<div className="flex items-center justify-center h-64">
|
|
|
- <div className="text-lg">Cargando dashboard...</div>
|
|
|
|
|
|
|
+ <LoadingSpinner size="lg" />
|
|
|
</div>
|
|
</div>
|
|
|
</MainLayout>
|
|
</MainLayout>
|
|
|
)
|
|
)
|