diff --git a/src/Routes/Routes.tsx b/src/Routes/Routes.tsx index 298c077..8a0fd64 100644 --- a/src/Routes/Routes.tsx +++ b/src/Routes/Routes.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {BrowserRouter as Router, Route, Routes as RootRoutes} from 'react-router-dom'; +import {Route, Routes as RootRoutes} from 'react-router-dom'; import MainLayout from '../layouts/MainLayout'; import { @@ -28,74 +28,72 @@ import ProtectedRoute from '../components/routes/ProtectedRoute'; const Routes: React.FC = () => { return ( - - - }> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - }> - - - - } - /> - - }> - } /> - } /> - - - + + }> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + }> + + + + } + /> + + }> + } /> + } /> + + ); }; diff --git a/src/index.tsx b/src/index.tsx index d2f7d43..488fdbe 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,8 +1,13 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; +import {HashRouter} from 'react-router-dom'; import App from './App'; import './styles.css'; const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement); -root.render(); +root.render( + + + , +);