5
5
Outlet ,
6
6
RouterProvider ,
7
7
} from "react-router-dom" ;
8
- import { FiBook , FiGlobe , FiGrid , FiSettings } from "react-icons/fi" ; // Icônes
8
+ import { FiGlobe , FiGrid , FiSettings } from "react-icons/fi" ;
9
9
import Browse from "./pages/Browse/Browse.tsx" ;
10
10
import ExtensionBrowse from "./pages/Browse/ExtensionBrowse.tsx" ;
11
11
import Extensions from "./pages/Extensions.tsx" ;
@@ -23,10 +23,6 @@ const router = createBrowserRouter([
23
23
path : "/" ,
24
24
element : < Browse /> ,
25
25
} ,
26
- // {
27
- // path: "/browse",
28
- // element: <Browse />,
29
- // },
30
26
{
31
27
path : "/browse/:extensionId" ,
32
28
element : < ExtensionBrowse /> ,
@@ -47,13 +43,8 @@ const router = createBrowserRouter([
47
43
} ,
48
44
] ) ;
49
45
50
- // Fonction pour gérer l'état d'onglet actif
51
46
function Layout ( ) {
52
- // const location = useLocation();
53
-
54
- // Définir les onglets et leurs routes
55
47
const navItems = [
56
- // { path: "/", icon: <FiBook />, label: "Library" },
57
48
{ path : "/" , icon : < FiGlobe /> , label : "Browse" } ,
58
49
{ path : "/extensions" , icon : < FiGrid /> , label : "Extensions" } ,
59
50
{ path : "/more" , icon : < FiSettings /> , label : "More" } ,
@@ -64,7 +55,6 @@ function Layout() {
64
55
< main className = "flex-1 p-2 overflow-y-auto" >
65
56
< Outlet />
66
57
</ main >
67
- { /* Barre de navigation, shadow vers le haut */ }
68
58
< nav className = "w-full bg-base-200 px-2 border-t border-base-100 shadow-[rgba(0,_0,_0,_0.4)_0px_30px_90px]" >
69
59
< div className = "grid grid-cols-3 max-w-xl mx-auto py-3" >
70
60
{ navItems . map ( ( item ) => (
0 commit comments