🎨 Remise au propre

This commit is contained in:
2026-06-10 16:24:37 -04:00
parent 9318d1c28b
commit 4e1a0b24f4
11 changed files with 37 additions and 624 deletions
+14 -7
View File
@@ -1,14 +1,21 @@
import { Routes, Route } from 'react-router-dom';
import Navbar from './components/Navbar';
import Layout from './components/Layout';
import Home from './pages/Home';
import Books from './pages/Books';
import Orders from './pages/Orders';
import Profile from './pages/Profile';
import NotFound from './pages/NotFound';
export default function App() {
return (
<>
<Navbar />
<Routes>
<Route path="/" element={<Home />} />
</Routes>
</>
<Routes>
<Route path="/" element={<Layout />}>
<Route index element={<Home />} />
<Route path="books" element={<Books />} />
<Route path="orders" element={<Orders />} />
<Route path="profile" element={<Profile />} />
<Route path="*" element={<NotFound />} />
</Route>
</Routes>
);
}