diff --git a/src/components/CustomCounter.jsx b/src/components/CustomCounter.jsx
index a9fa37d..1431b21 100644
--- a/src/components/CustomCounter.jsx
+++ b/src/components/CustomCounter.jsx
@@ -29,11 +29,12 @@
// export default CustomCounter;
-import React from 'react';
-import CountUp from 'react-countup';
+// import React from 'react';
+// import CountUp from 'react-countup';
const CustomCounter = ({ targetNumber, timeInSeconds }) => {
- return
Loans
-{dashData?.loans?.currency_text}
{dashData?.loans?.currency_text}
Payments
- {/*{dashData?.payments?.currency_text}
{dashData?.payments?.text}
diff --git a/src/components/home/Widget1.jsx b/src/components/home/Widget1.jsx index 6bf0882..caa7fd1 100644 --- a/src/components/home/Widget1.jsx +++ b/src/components/home/Widget1.jsx @@ -1,187 +1,187 @@ -import {useEffect, useRef} from 'react' -import ApexCharts from 'apexcharts' +// import {useEffect, useRef} from 'react' +// import ApexCharts from 'apexcharts' -const Widget1 = ({chartHeight='50px'}) => { - const chartRef = useRef(null) +// const Widget1 = ({chartHeight='50px'}) => { +// const chartRef = useRef(null) - const {mode} = '' // to be replaced by theme mode value later +// const {mode} = '' // to be replaced by theme mode value later - useEffect(() => { - const chart = refreshChart() +// useEffect(() => { +// const chart = refreshChart() - return () => { - if (chart) { - chart.destroy() - } - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [chartRef, mode]) +// return () => { +// if (chart) { +// chart.destroy() +// } +// } +// // eslint-disable-next-line react-hooks/exhaustive-deps +// }, [chartRef, mode]) - const refreshChart = () => { - if (!chartRef.current) { - return - } +// const refreshChart = () => { +// if (!chartRef.current) { +// return +// } - const chart = new ApexCharts(chartRef.current, chartOptions(chartHeight)) - if (chart) { - chart.render() - } +// const chart = new ApexCharts(chartRef.current, chartOptions(chartHeight)) +// if (chart) { +// chart.render() +// } - return chart - } +// return chart +// } - return ( -