diff --git a/src/components/admin/dashboard-statistics/GlobalStats.tsx b/src/components/admin/dashboard-statistics/GlobalStats.tsx index 9fc11dc6c..a515eb1be 100644 --- a/src/components/admin/dashboard-statistics/GlobalStats.tsx +++ b/src/components/admin/dashboard-statistics/GlobalStats.tsx @@ -2,85 +2,102 @@ import React from 'react'; import AccessTimeIcon from '@mui/icons-material/AccessTime'; import VisibilityIcon from '@mui/icons-material/Visibility'; +import { Grid } from '@mui/material'; import TeamComments from './TeamComments'; import AverageStatsCard from './cards/AverageStatsCard/AverageStatsCard'; import ClassesExchangesCard from './cards/ClassesExchangesCard/ClassesExchangesCard'; import StatsCard from './cards/StatsCard/StatsCard'; import DashboardWorldMap from './map/DashboardWorldMap/DashboardWorldMap'; -import PhaseDetails from './menu/PhaseDetails'; import { useGetSessionsStats } from 'src/api/statistics/statistics.get'; const GlobalStats = () => { - const sessionsStats = useGetSessionsStats(); + const sessionsStats = useGetSessionsStats(null); if (sessionsStats.isError) return
Error!
; if (sessionsStats.isLoading || sessionsStats.isIdle) returnLoading...
; + console.log('Sessions stats', sessionsStats.data); + return ( <>