|
|
@@ -2,10 +2,10 @@ import {
|
|
|
Card,
|
|
|
CardContent,
|
|
|
Typography,
|
|
|
- Grid,
|
|
|
Box,
|
|
|
Paper,
|
|
|
} from '@mui/material';
|
|
|
+import Grid2 from '@mui/material/Grid2';
|
|
|
import { useTranslate } from 'react-admin';
|
|
|
import {
|
|
|
People as PeopleIcon,
|
|
|
@@ -22,8 +22,8 @@ export const Dashboard = () => {
|
|
|
{translate('dashboard.overview')}
|
|
|
</Typography>
|
|
|
|
|
|
- <Grid container spacing={3}>
|
|
|
- <Grid item xs={12} sm={6} md={3}>
|
|
|
+ <Grid2 container spacing={3}>
|
|
|
+ <Grid2 size={{ xs: 12, sm: 6, md: 3 }}>
|
|
|
<Card>
|
|
|
<CardContent>
|
|
|
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }}>
|
|
|
@@ -37,9 +37,9 @@ export const Dashboard = () => {
|
|
|
</Typography>
|
|
|
</CardContent>
|
|
|
</Card>
|
|
|
- </Grid>
|
|
|
+ </Grid2>
|
|
|
|
|
|
- <Grid item xs={12} sm={6} md={3}>
|
|
|
+ <Grid2 size={{ xs: 12, sm: 6, md: 3 }}>
|
|
|
<Card>
|
|
|
<CardContent>
|
|
|
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }}>
|
|
|
@@ -53,9 +53,9 @@ export const Dashboard = () => {
|
|
|
</Typography>
|
|
|
</CardContent>
|
|
|
</Card>
|
|
|
- </Grid>
|
|
|
+ </Grid2>
|
|
|
|
|
|
- <Grid item xs={12} sm={6} md={3}>
|
|
|
+ <Grid2 size={{ xs: 12, sm: 6, md: 3 }}>
|
|
|
<Card>
|
|
|
<CardContent>
|
|
|
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }}>
|
|
|
@@ -69,9 +69,9 @@ export const Dashboard = () => {
|
|
|
</Typography>
|
|
|
</CardContent>
|
|
|
</Card>
|
|
|
- </Grid>
|
|
|
+ </Grid2>
|
|
|
|
|
|
- <Grid item xs={12} sm={6} md={3}>
|
|
|
+ <Grid2 size={{ xs: 12, sm: 6, md: 3 }}>
|
|
|
<Card>
|
|
|
<CardContent>
|
|
|
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }}>
|
|
|
@@ -85,8 +85,8 @@ export const Dashboard = () => {
|
|
|
</Typography>
|
|
|
</CardContent>
|
|
|
</Card>
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
+ </Grid2>
|
|
|
+ </Grid2>
|
|
|
|
|
|
<Paper sx={{ mt: 3, p: 3 }}>
|
|
|
<Typography variant="h6" gutterBottom>
|