fix: replace browser router with hash router

This commit is contained in:
daniyal 2024-08-13 16:49:11 +05:00
parent a8a2d3dbf3
commit 51bd5a4d5e

View File

@ -1,7 +1,7 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import { Provider } from 'react-redux'
import { BrowserRouter } from 'react-router-dom'
import { HashRouter } from 'react-router-dom'
import { ToastContainer } from 'react-toastify'
import 'react-toastify/dist/ReactToastify.css'
import App from './App.tsx'
@ -11,10 +11,10 @@ import { store } from './store/index.ts'
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<Provider store={store}>
<BrowserRouter>
<HashRouter>
<App />
<ToastContainer />
</BrowserRouter>
</HashRouter>
</Provider>
</React.StrictMode>
)