LFFE-10 responsive debug
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user