From 001d3b220128c23523e73b3dbc83a95502cd399d Mon Sep 17 00:00:00 2001 From: Melissa Olas Date: Thu, 25 Apr 2024 16:53:30 +0200 Subject: [PATCH] changing value on Table --- .../dashboard-statistics/CountryStats.tsx | 3 +- .../charts/DashboardTable.tsx | 38 +++++++++---------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/src/components/admin/dashboard-statistics/CountryStats.tsx b/src/components/admin/dashboard-statistics/CountryStats.tsx index 48c521e91..3e10b31d9 100644 --- a/src/components/admin/dashboard-statistics/CountryStats.tsx +++ b/src/components/admin/dashboard-statistics/CountryStats.tsx @@ -1,10 +1,9 @@ import React from 'react'; import BarCharts from './charts/BarCharts'; +import DashboardTable from './charts/DashboardTable'; import HorizontalBars from './charts/HorizontalCharts'; import PieCharts from './charts/PieCharts'; -import DashboardTable from './charts/DashboardTable'; - import styles from './styles/charts.module.css'; const pieChartData = { diff --git a/src/components/admin/dashboard-statistics/charts/DashboardTable.tsx b/src/components/admin/dashboard-statistics/charts/DashboardTable.tsx index ff97ebd7c..f4b54ec56 100644 --- a/src/components/admin/dashboard-statistics/charts/DashboardTable.tsx +++ b/src/components/admin/dashboard-statistics/charts/DashboardTable.tsx @@ -1,20 +1,14 @@ -import * as React from 'react'; +import Paper from '@mui/material/Paper'; import Table from '@mui/material/Table'; import TableBody from '@mui/material/TableBody'; import TableCell from '@mui/material/TableCell'; import TableContainer from '@mui/material/TableContainer'; import TableHead from '@mui/material/TableHead'; import TableRow from '@mui/material/TableRow'; -import Paper from '@mui/material/Paper'; +import React from 'react'; -function createData( - name: string, - calories: number, - fat: number, - carbs: number, - protein: number, -) { - return { name, calories, fat, carbs, protein }; +function createData(classroom: string, vm: sting, prof: string, status: string) { + return { classroom, vm, prof, status }; } const rows = [ @@ -31,15 +25,17 @@ export default function DashboardTable() { - Dessert (100g serving) - Calories - Fat (g) - Carbs (g) - Protein (g) + A surveiller + + + Classe + Village-Monde + Professeur + Statut - {rows.map((row) => ( + {/* {rows.map((row) => ( {row.name} - {row.calories} - {row.fat} - {row.carbs} - {row.protein} + {row.classroom} + {row.vm} + {row.prof} + {row.status} - ))} + ))} */}