From 7892e9b13f3a01e72ac96189ae132b80e505dde1 Mon Sep 17 00:00:00 2001 From: Punarv Pawade Date: Mon, 22 Apr 2024 00:02:03 +0530 Subject: [PATCH] webapp:use hashrouter --- webapp/src/App.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/webapp/src/App.tsx b/webapp/src/App.tsx index 498c5ca..d6bac39 100644 --- a/webapp/src/App.tsx +++ b/webapp/src/App.tsx @@ -1,18 +1,12 @@ // App.tsx -import { - createBrowserRouter, - BrowserRouter, - Route, - Routes, - RouterProvider, -} from "react-router-dom"; +import { createHashRouter, RouterProvider } from "react-router-dom"; import Dashboard from "./pages/Dashboard"; import LandingPage from "./pages/LandingPage"; import Server from "./pages/Server"; import AuthComponent from "./components/Auth"; const App = () => { - const router = createBrowserRouter([ + const router = createHashRouter([ { path: "/", element: ,