LFFE-10 responsive debug

This commit is contained in:
2023-11-18 11:08:51 +03:30
parent 2e823e7ade
commit 3b8d2b8d01
2 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ import {useMediaQuery} from "@mui/material";
const Pie = ({data}) => {
const theme = useTheme();
const upperSm = useMediaQuery((theme.breakpoints.up("sm")))
const upperMd = useMediaQuery((theme.breakpoints.up("md")))
const specialOption = {
title: {
text: undefined,
@@ -22,7 +22,7 @@ const Pie = ({data}) => {
},
},
legend: {
show: upperSm
show: upperMd
}
};
const series = data.map((item) => +item.percentage)

View File

@@ -4,7 +4,7 @@ import {useMediaQuery} from "@mui/material";
const PolarChart = ({data}) => {
const theme = useTheme();
const upperSm = useMediaQuery((theme.breakpoints.up("sm")))
const upperMd = useMediaQuery((theme.breakpoints.up("md")))
const specialOption = {
title: {
text: undefined,
@@ -29,7 +29,7 @@ const PolarChart = ({data}) => {
},
},
legend: {
show: upperSm
show: upperMd
}
};
const series = data.map((item) => +item.percentage)