idk a lot of changes for the admin stuff
This commit is contained in:
parent
2cbbc00489
commit
5251ca6f99
23 changed files with 576 additions and 15 deletions
|
|
@ -6,15 +6,21 @@ import { BrowserRouter, Route, Routes } from 'react-router-dom'
|
|||
import Navbar from './Components/Navbar/Navbar.tsx'
|
||||
import Search from './Pages/Search/Search.tsx';
|
||||
import Login from './Pages/Login/Login.tsx';
|
||||
import Admin from './Pages/Admin/Admin.tsx';
|
||||
import NotFound from './Pages/NotFound/NotFound.tsx';
|
||||
import ManageUser from './Pages/ManageUser/ManageUser.tsx';
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<BrowserRouter>
|
||||
<Navbar />
|
||||
<Routes>
|
||||
<Route path="/" element={<Index />} />
|
||||
<Route index={true} path="/" element={<Index />} />
|
||||
<Route path="/search" element={<Search />} />
|
||||
<Route path="/login" element={<Login />} />
|
||||
<Route path="/admin" element={<Admin />} />
|
||||
<Route path="/user" element={<ManageUser />} />
|
||||
<Route path="*" element={<NotFound />} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
</StrictMode>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue