From 76d1df5d017a4178520dbd3f342d9a2da2740bd4 Mon Sep 17 00:00:00 2001 From: KGFCH2 Date: Tue, 2 Jun 2026 13:54:27 +0530 Subject: [PATCH] fix: wrap app with ThemeProvider for theme hook stability --- client/src/main.jsx | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/client/src/main.jsx b/client/src/main.jsx index f8492a7..614d8d0 100644 --- a/client/src/main.jsx +++ b/client/src/main.jsx @@ -3,23 +3,26 @@ import ReactDOM from "react-dom/client"; import { BrowserRouter } from "react-router-dom"; import { ToastContainer } from "react-toastify"; import App from "./App.jsx"; +import { ThemeProvider } from "./Context/ThemeContext.jsx"; import "./index.css"; import "react-toastify/dist/ReactToastify.css"; ReactDOM.createRoot(document.getElementById("root")).render( - - - - + + + + + + , );