diff --git a/src/App.tsx b/src/App.tsx index 54a35385..01ca02f9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,4 @@ -import { BrowserRouter as Router } from 'react-router-dom'; +import { HashRouter as Router } from 'react-router-dom'; // Change to HashRouter import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { ErrorBoundary } from './components/ui/ErrorBoundary'; import { Navbar } from './components/layout/Navbar'; @@ -32,4 +32,4 @@ function App() { ); } -export default App; \ No newline at end of file +export default App; diff --git a/src/routes.tsx b/src/routes.tsx index d7768d14..ce779b9c 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,4 +1,4 @@ -import { Routes, Route } from 'react-router-dom'; +import { HashRouter as Router, Routes, Route } from 'react-router-dom'; import { Suspense, lazy } from 'react'; import { Loader2 } from 'lucide-react'; @@ -20,16 +20,18 @@ function LoadingSpinner() { export function AppRoutes() { return ( - }> - - } /> - } /> - } /> - } /> - } /> - } /> - } /> - - + + }> + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + ); -} \ No newline at end of file +}