+
+ );
};
export default RouletteWheel;
diff --git a/src/config.js b/src/config.js
index 7e45018..6a8f339 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,5 +1,5 @@
// src/config.js
-const API_BASE_URL = "https://8h8rx8-5000.csb.app"; // Replace with your actual backend URL
+const API_BASE_URL = "https://5n2rcx-5000.csb.app"; // Replace with your actual backend URL
export default API_BASE_URL;
diff --git a/src/helpers/transactionHelpers.js b/src/helpers/transactionHelpers.js
index c88852f..c9b0dd1 100644
--- a/src/helpers/transactionHelpers.js
+++ b/src/helpers/transactionHelpers.js
@@ -343,10 +343,15 @@ export const getFavourite = async (cafeId) => {
return response.json();
};
-export const getAnalytics = async (cafeId) => {
+export const getAnalytics = async (cafeId, filter) => {
const response = await fetch(
- `${API_BASE_URL}/transaction/get-analytics/${cafeId}`,
- getHeaders()
+ API_BASE_URL + "/transaction/get-analytics/" + cafeId + "?type=" + filter,
+ {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ }
);
return response.json();
};
diff --git a/src/pages/Reports.js b/src/pages/Reports.js
index 24e6e2d..ba51624 100644
--- a/src/pages/Reports.js
+++ b/src/pages/Reports.js
@@ -85,7 +85,7 @@ const RoundedRectangle = ({
{percentage != undefined && "%"}
{percentage != undefined && (