diff --git a/DIDFrontend/src/main.jsx b/DIDFrontend/src/main.jsx
index 97a8c28..3fc6f5f 100644
--- a/DIDFrontend/src/main.jsx
+++ b/DIDFrontend/src/main.jsx
@@ -1,13 +1,111 @@
+// import React from "react";
+// import ReactDOM from "react-dom/client";
+// import App from "./App.jsx";
+// import "./index.css";
+// import {
+// createBrowserRouter,
+// createRoutesFromElements,
+// RouterProvider,
+// Route,
+// } from "react-router-dom";
+// import { NextUIProvider } from "@nextui-org/react";
+// import Home from "./components/Home/Home.jsx";
+// import Population from "./components/Population/Population.jsx";
+// import LoginPage from "./components/Auth/LoginPage.jsx";
+// import RegisterPage from "./components/Auth/RegisterPage.jsx";
+// import UserProfile from "./components/Auth/UserProfile.jsx";
+// import Demography from "./components/Demography/Demography.jsx";
+// import AddSchemes from "./components/Schemes/AddSchemes.jsx";
+// import VisnagarMap from "./components/Demography/Maps/VisnagarMap.jsx";
+// import SatlasanaMap from "./components/Demography/Maps/SatlasanaMap.jsx";
+// import KheraluMap from "./components/Demography/Maps/KheraluMap.jsx";
+// import KadiMap from "./components/Demography/Maps/KadiMap.jsx";
+// import MahesanaMap from "./components/Demography/Maps/MahesanaMap.jsx";
+// import BechrajiMap from "./components/Demography/Maps/BechrajiMap.jsx";
+// import JotanaMap from "./components/Demography/Maps/JotanaMap.jsx";
+// import VadnagarMap from "./components/Demography/Maps/VadnagarMap.jsx";
+// import VijapurMap from "./components/Demography/Maps/VijapurMap.jsx";
+// import UnjhaMap from "./components/Demography/Maps/UnjhaMap.jsx";
+// import { Provider } from "react-redux";
+// import store from "./store/store.js";
+// import { AuthProvider } from './auth-context/auth-context';
+// import ProtectedRoute from "./components/Auth/ProtectedRoute"; // Import the ProtectedRoute
+// import SchemeDetails from "./components/Schemes/SchemeID.jsx";
+// const routes = createRoutesFromElements(
+// <>
+// {/* Public Routes */}
+// } />
+// } />
+
+// {/* Protected Routes */}
+//
+//
+//
+// }
+// >
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+// } />
+//
+// >
+// );
+
+// const router = createBrowserRouter(routes);
+
+// ReactDOM.createRoot(document.getElementById("root")).render(
+//
+//
+//
+//
+//
+//
+//
+//
+//
+// );
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.jsx";
import "./index.css";
-import {
- createBrowserRouter,
- createRoutesFromElements,
- RouterProvider,
- Route,
-} from "react-router-dom";
+import { HashRouter, Routes, Route } from "react-router-dom";
import { NextUIProvider } from "@nextui-org/react";
import Home from "./components/Home/Home.jsx";
import Population from "./components/Population/Population.jsx";
@@ -29,51 +127,48 @@ import UnjhaMap from "./components/Demography/Maps/UnjhaMap.jsx";
import { Provider } from "react-redux";
import store from "./store/store.js";
import { AuthProvider } from './auth-context/auth-context';
-import ProtectedRoute from "./components/Auth/ProtectedRoute"; // Import the ProtectedRoute
+import ProtectedRoute from "./components/Auth/ProtectedRoute";
import SchemeDetails from "./components/Schemes/SchemeID.jsx";
-const routes = createRoutesFromElements(
- <>
- {/* Public Routes */}
- } />
- } />
-
- {/* Protected Routes */}
-
-
-
- }
- >
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
-
- >
-);
-
-const router = createBrowserRouter(routes);
ReactDOM.createRoot(document.getElementById("root")).render(
-
+
+
+ {/* Public Routes */}
+ } />
+ } />
+
+ {/* Protected Routes */}
+
+
+
+ }
+ >
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+
+
+