fixed bug: Now you dont have to reload the page twice, after creating a loan

This commit is contained in:
2025-08-20 12:30:37 +02:00
parent ef19592b32
commit ff219d850b
6 changed files with 78 additions and 55 deletions

View File

@@ -4,22 +4,26 @@ import "./index.css";
import App from "./App.tsx";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import { QueryClientProvider } from "@tanstack/react-query";
import { queryClient } from "./utils/queryClient";
createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
<ToastContainer
position="top-right"
autoClose={3000}
hideProgressBar={false}
newestOnTop
closeOnClick
rtl={false}
pauseOnFocusLoss={false}
draggable
pauseOnHover
theme="colored"
style={{ zIndex: 9999 }}
/>
<QueryClientProvider client={queryClient}>
<App />
<ToastContainer
position="top-right"
autoClose={3000}
hideProgressBar={false}
newestOnTop
closeOnClick
rtl={false}
pauseOnFocusLoss={false}
draggable
pauseOnHover
theme="colored"
style={{ zIndex: 9999 }}
/>
</QueryClientProvider>
</StrictMode>
);