From 3b8d2b8d017b2a5bd9d85fca23ac8e5e45e16f14 Mon Sep 17 00:00:00 2001 From: Mohammad Jalali Date: Sat, 18 Nov 2023 11:08:51 +0330 Subject: [PATCH] LFFE-10 responsive debug --- .../dashboard/reports/LoanDistribution/PieChart.jsx | 4 ++-- .../dashboard/reports/LoanDistribution/PolarChart.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/dashboard/reports/LoanDistribution/PieChart.jsx b/src/components/dashboard/reports/LoanDistribution/PieChart.jsx index 9da086e..1ce3242 100644 --- a/src/components/dashboard/reports/LoanDistribution/PieChart.jsx +++ b/src/components/dashboard/reports/LoanDistribution/PieChart.jsx @@ -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) diff --git a/src/components/dashboard/reports/LoanDistribution/PolarChart.jsx b/src/components/dashboard/reports/LoanDistribution/PolarChart.jsx index 2b62915..d6b73ff 100644 --- a/src/components/dashboard/reports/LoanDistribution/PolarChart.jsx +++ b/src/components/dashboard/reports/LoanDistribution/PolarChart.jsx @@ -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)