diff --git a/FrontendV2/package-lock.json b/FrontendV2/package-lock.json index 9386253..90f17b0 100644 --- a/FrontendV2/package-lock.json +++ b/FrontendV2/package-lock.json @@ -11,7 +11,7 @@ "@chakra-ui/react": "^3.28.0", "@emotion/react": "^11.14.0", "@tailwindcss/vite": "^4.1.11", - "@tanstack/react-query": "^5.85.5", + "@tanstack/react-query": "^5.90.5", "i18next": "^25.6.0", "jotai": "^2.15.0", "js-cookie": "^3.0.5", diff --git a/FrontendV2/package.json b/FrontendV2/package.json index 4b9241b..316dcce 100644 --- a/FrontendV2/package.json +++ b/FrontendV2/package.json @@ -13,7 +13,7 @@ "@chakra-ui/react": "^3.28.0", "@emotion/react": "^11.14.0", "@tailwindcss/vite": "^4.1.11", - "@tanstack/react-query": "^5.85.5", + "@tanstack/react-query": "^5.90.5", "i18next": "^25.6.0", "jotai": "^2.15.0", "js-cookie": "^3.0.5", diff --git a/FrontendV2/src/App.tsx b/FrontendV2/src/App.tsx index 3b896ae..1f721c9 100644 --- a/FrontendV2/src/App.tsx +++ b/FrontendV2/src/App.tsx @@ -13,12 +13,11 @@ import { MyLoansPage } from "./pages/MyLoansPage"; import Landingpage from "./pages/Landingpage"; import { changeLanguage } from "i18next"; import { Box, Flex } from "@chakra-ui/react"; -import { Footer } from "./components/Footer"; +import { Footer } from "./components/footer/Footer"; +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; +import { API_BASE } from "@/config/api.config"; -const API_BASE = - (import.meta as any).env?.VITE_BACKEND_URL || - import.meta.env.VITE_BACKEND_URL || - "http://localhost:8002"; +const queryClient = new QueryClient(); function App() { const [user, setUser] = useState(undefined); @@ -65,24 +64,26 @@ function App() { }, []); return ( - - - - - - }> - } /> - } /> - } /> - + + + + + + + }> + } /> + } /> + } /> + - } /> - - - - -