diff --git a/package.json b/package.json
index 1f9989b..d6134b9 100644
--- a/package.json
+++ b/package.json
@@ -5,10 +5,13 @@
"dependencies": {
"@reduxjs/toolkit": "^2.5.1",
"@tanstack/react-query": "^5.66.0",
+ "apexcharts": "^4.5.0",
"axios": "^1.7.9",
"cra-template": "1.2.0",
"formik": "^2.4.6",
"react": "^19.0.0",
+ "react-apexcharts": "^1.7.0",
+ "react-countup": "^6.5.3",
"react-dom": "^19.0.0",
"react-icons": "^5.4.0",
"react-redux": "^9.2.0",
diff --git a/src/components/CustomCounter.jsx b/src/components/CustomCounter.jsx
index dbfdf98..a9fa37d 100644
--- a/src/components/CustomCounter.jsx
+++ b/src/components/CustomCounter.jsx
@@ -1,29 +1,39 @@
-import React, { useEffect, useState } from 'react';
+// import React, { useEffect, useState } from 'react';
+
+// const CustomCounter = ({ targetNumber, timeInSeconds }) => {
+// const [count, setCount] = useState(0);
+
+// useEffect(() => {
+// if (targetNumber <= 0 || timeInSeconds <= 0) return; // Handle edge cases
+
+// const interval = Math.floor(timeInSeconds * 1000 / targetNumber); // Time interval for each count in milliseconds
+// const totalTime = timeInSeconds * 1000; // Total time for the entire count in milliseconds
+
+// let currentCount = 0;
+// const intervalId = setInterval(() => {
+// currentCount++;
+// setCount((prevCount) => prevCount + 1); // Update state using the previous state
+
+// if (currentCount >= targetNumber) {
+// clearInterval(intervalId); // Stop the counting when the target number is reached
+// }
+// }, interval);
+
+// // Cleanup the interval on component unmount
+// return () => clearInterval(intervalId);
+// }, [targetNumber, timeInSeconds]);
+
+// return <>{count}>;
+// };
+
+// export default CustomCounter;
+
+
+import React from 'react';
+import CountUp from 'react-countup';
const CustomCounter = ({ targetNumber, timeInSeconds }) => {
- const [count, setCount] = useState(0);
-
- useEffect(() => {
- if (targetNumber <= 0 || timeInSeconds <= 0) return; // Handle edge cases
-
- const interval = Math.floor(timeInSeconds * 1000 / targetNumber); // Time interval for each count in milliseconds
- const totalTime = timeInSeconds * 1000; // Total time for the entire count in milliseconds
-
- let currentCount = 0;
- const intervalId = setInterval(() => {
- currentCount++;
- setCount((prevCount) => prevCount + 1); // Update state using the previous state
-
- if (currentCount >= targetNumber) {
- clearInterval(intervalId); // Stop the counting when the target number is reached
- }
- }, interval);
-
- // Cleanup the interval on component unmount
- return () => clearInterval(intervalId);
- }, [targetNumber, timeInSeconds]);
-
- return <>{count}>;
+ return
Earnings
+ {/*$
- 12% this week
@@ -20,13 +23,14 @@ export default function HomePage() {Contributions
+ {/*+ 56% this week
Summary
+Summary
Members Statistics