Skip to content

Commit

Permalink
add component to Global
Browse files Browse the repository at this point in the history
  • Loading branch information
SimNed committed May 27, 2024
1 parent 935c8d2 commit 3f8a29b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/admin/dashboard-statistics/GlobalStats.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';

import StatsCard from './cards/StatsCard/StatsCard';
import AverageStatsCard from './cards/AverageStatsCard/AverageStatsCard';

const GlobalStats = () => {
return (
Expand All @@ -9,6 +10,11 @@ const GlobalStats = () => {
<StatsCard data={20}>Nombre de classes connectées</StatsCard>
<StatsCard data={24}>Nombre de classes contributrices</StatsCard>
</div>
<div>
<AverageStatsCard data={{ min: 1, max: 20, average: 15, median: 5 }} unit="min" icon={<AccessTimeIcon sx={{ fontSize: 'inherit' }} />}>
Temps de connexion moyen par classe
</AverageStatsCard>
</div>
);
};

Expand Down

0 comments on commit 3f8a29b

Please sign in to comment.