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} - {/* */}