@@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';
44import CloudIcon from '@mui/icons-material/Cloud' ;
55import CommentIcon from '@mui/icons-material/Comment' ;
66import PeopleIcon from '@mui/icons-material/People' ;
7- import { Alert , Box , Button , Grid , Typography } from '@mui/material' ;
7+ import { Alert , Box , Button , Grid2 , Typography } from '@mui/material' ;
88
99import { AppAction } from '@graasp/sdk' ;
1010import { Loader } from '@graasp/ui' ;
@@ -45,8 +45,13 @@ const AnalyticsView = (): JSX.Element => {
4545 < Box >
4646 { commentsByUserSide ? (
4747 < >
48- < Grid container spacing = { 2 } marginTop = { 1 } justifyContent = "center" >
49- < Grid xs = { 12 } md = { 4 } item >
48+ < Grid2
49+ container
50+ spacing = { 2 }
51+ marginTop = { 1 }
52+ justifyContent = "center"
53+ >
54+ < Grid2 size = { { xs : 12 , md : 4 } } >
5055 < StatisticCard
5156 icon = { < CommentIcon fontSize = "large" color = "primary" /> }
5257 title = { t ( 'STATISTIC_TOTAL_USER_COMMENTS_TITLE' ) }
@@ -59,8 +64,8 @@ const AnalyticsView = (): JSX.Element => {
5964 { commentsByUserSide . length }
6065 </ Typography >
6166 </ StatisticCard >
62- </ Grid >
63- < Grid xs = { 12 } md = { 4 } item >
67+ </ Grid2 >
68+ < Grid2 size = { { xs : 12 , md : 4 } } >
6469 < StatisticCard
6570 icon = { < PeopleIcon fontSize = "large" color = "primary" /> }
6671 title = { t ( 'STATISTIC_AVERAGE_USER_COMMENTS_TITLE' ) }
@@ -70,8 +75,8 @@ const AnalyticsView = (): JSX.Element => {
7075 Object . keys ( commentsByMembers ) . length }
7176 </ Typography >
7277 </ StatisticCard >
73- </ Grid >
74- < Grid xs = { 12 } md = { 4 } item >
78+ </ Grid2 >
79+ < Grid2 size = { { xs : 12 , md : 4 } } >
7580 < StatisticCard
7681 icon = { < CloudIcon fontSize = "large" color = "primary" /> }
7782 title = { t ( 'WORDS_FREQUENCY' ) }
@@ -85,8 +90,8 @@ const AnalyticsView = (): JSX.Element => {
8590 { t ( 'SEE_WORDS_CLOUD' ) }
8691 </ Button >
8792 </ StatisticCard >
88- </ Grid >
89- </ Grid >
93+ </ Grid2 >
94+ </ Grid2 >
9095
9196 < FrequentWords
9297 commentsByUserSide = { commentsByUserSide }
0 commit comments