diff --git a/src/components/reports/Progress.jsx b/src/components/reports/Progress.jsx index 89d1dfca..3625ff19 100644 --- a/src/components/reports/Progress.jsx +++ b/src/components/reports/Progress.jsx @@ -8,7 +8,7 @@ const Progress = ({ total = 0, height = 100, width = 100, - completed =0, + completed = 0, }) => { const options = { chart: { @@ -24,16 +24,19 @@ const Progress = ({ value: { show: true, fontSize: "13px", - width:"12px", - textWrap:"wrap", + width: "12px", + textWrap: "wrap", color: color, fontWeight: 400, offsetY: 7, - formatter: () => `${formatFigure(completed,{notation:"compact"})} / ${formatFigure(total,{notation:"compact"})}`, + formatter: () => + `${formatFigure(completed, { + notation: "compact", + })} / ${formatFigure(total, { notation: "compact" })}`, + }, + style: { + textWrap: "wrap", }, - style:{ - textWrap:"wrap", - } }, }, }, @@ -54,7 +57,6 @@ const Progress = ({ }; export default Progress; - // const Progress = ({ // completed = 0, // inProgress = 0, diff --git a/src/components/reports/ReportsDonutCard.jsx b/src/components/reports/ReportsDonutCard.jsx index 3565934a..a6d0dcdb 100644 --- a/src/components/reports/ReportsDonutCard.jsx +++ b/src/components/reports/ReportsDonutCard.jsx @@ -10,10 +10,10 @@ const ReportsDonutCard = ({ footer = "Team members present on the site", chartColor, legend1 = "Completed", - legend2 = "Pending" + legend2 = "Pending", }) => { return ( -