mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-06 04:35:18 +02:00
🐛 fix(router): browser router exchange with hash router
This commit is contained in:
@@ -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">
|
||||||
|
Reference in New Issue
Block a user