🐛 fix(router): browser router exchange with hash router

This commit is contained in:
eshanized
2024-12-27 22:35:58 +05:30
parent b720ea8b71
commit 953a88891b

View File

@@ -1,4 +1,4 @@
import { BrowserRouter as Router } from 'react-router-dom'; import { HashRouter as Router } from 'react-router-dom'; // Use HashRouter
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ErrorBoundary } from './components/ui/ErrorBoundary'; import { ErrorBoundary } from './components/ui/ErrorBoundary';
import { Navbar } from './components/layout/Navbar'; import { Navbar } from './components/layout/Navbar';
@@ -18,7 +18,7 @@ function App() {
return ( return (
<ErrorBoundary> <ErrorBoundary>
<QueryClientProvider client={queryClient}> <QueryClientProvider client={queryClient}>
<Router> <Router> {/* Using HashRouter */}
<div className="min-h-screen bg-gray-50 font-fira-sans flex flex-col"> <div className="min-h-screen bg-gray-50 font-fira-sans flex flex-col">
<Navbar /> <Navbar />
<main className="flex-grow pt-16"> <main className="flex-grow pt-16">