From 9cda3805259e0521ddcc74570d8268208b114d16 Mon Sep 17 00:00:00 2001 From: "Siddhesh.More" Date: Wed, 27 Nov 2024 12:11:44 +0530 Subject: [PATCH] update --- dev-dist/sw.js | 2 +- src/Layout/DefaultLayout.jsx | 35 +++++++---------------- src/components/ChartsTabs.jsx | 2 +- src/components/Doughnut/LineChart.jsx | 12 +------- src/pages/Home.jsx | 41 --------------------------- 5 files changed, 14 insertions(+), 78 deletions(-) diff --git a/dev-dist/sw.js b/dev-dist/sw.js index 23a39ae..6c1b423 100644 --- a/dev-dist/sw.js +++ b/dev-dist/sw.js @@ -82,7 +82,7 @@ define(['./workbox-b5f7729d'], (function (workbox) { 'use strict'; "revision": "3ca0b8505b4bec776b69afdba2768812" }, { "url": "index.html", - "revision": "0.1vefs8ecrtg" + "revision": "0.k4sl9nq3coo" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/src/Layout/DefaultLayout.jsx b/src/Layout/DefaultLayout.jsx index 7f80170..d30faa3 100644 --- a/src/Layout/DefaultLayout.jsx +++ b/src/Layout/DefaultLayout.jsx @@ -10,50 +10,37 @@ import { timeZone } from "../Constants/Constants"; import SplashScreen from "../pages/SplashScreen"; const DefaultLayout = ({ children }) => { - const location = useLocation(); useEffect(() => { localStorage.setItem("light", true) }); - - // const { - // isLoading, - // } = useGetKPIDetailsQuery() - + const { - isLoading: dateDataLoading, - } = useGetDateWiseDataQuery(timeZone === "Asia/Calcutta" ? "Asia/Kolkata" : timeZone); - + data, + isLoading, + } = useGetKPIDetailsQuery() const { isLoading: dailyDataLoading, } = useGetDailyDataQuery(timeZone === "Asia/Calcutta" ? "Asia/Kolkata" : timeZone); // Fetch transactions based on the current page and page size const { - isLoading: isTransAllLoading, + refetch } = useGetTransAllQuery({ pageNumber: 1, pageSize: 10, }); + // useEffect(() => { + // refetch() + // }, []) + + return ( - dateDataLoading || dailyDataLoading || isTransAllLoading ?: + dailyDataLoading || isLoading ? : - {/* */} {children} - {/* */}