Skip to content

Commit 54c6913

Browse files
committed
remove unused import and clean comments
1 parent a60c33d commit 54c6913

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/App.tsx

+1-11
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Outlet,
66
RouterProvider,
77
} 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";
99
import Browse from "./pages/Browse/Browse.tsx";
1010
import ExtensionBrowse from "./pages/Browse/ExtensionBrowse.tsx";
1111
import Extensions from "./pages/Extensions.tsx";
@@ -23,10 +23,6 @@ const router = createBrowserRouter([
2323
path: "/",
2424
element: <Browse />,
2525
},
26-
// {
27-
// path: "/browse",
28-
// element: <Browse />,
29-
// },
3026
{
3127
path: "/browse/:extensionId",
3228
element: <ExtensionBrowse />,
@@ -47,13 +43,8 @@ const router = createBrowserRouter([
4743
},
4844
]);
4945

50-
// Fonction pour gérer l'état d'onglet actif
5146
function Layout() {
52-
// const location = useLocation();
53-
54-
// Définir les onglets et leurs routes
5547
const navItems = [
56-
// { path: "/", icon: <FiBook />, label: "Library" },
5748
{ path: "/", icon: <FiGlobe />, label: "Browse" },
5849
{ path: "/extensions", icon: <FiGrid />, label: "Extensions" },
5950
{ path: "/more", icon: <FiSettings />, label: "More" },
@@ -64,7 +55,6 @@ function Layout() {
6455
<main className="flex-1 p-2 overflow-y-auto">
6556
<Outlet />
6657
</main>
67-
{/* Barre de navigation, shadow vers le haut */}
6858
<nav className="w-full bg-base-200 px-2 border-t border-base-100 shadow-[rgba(0,_0,_0,_0.4)_0px_30px_90px]">
6959
<div className="grid grid-cols-3 max-w-xl mx-auto py-3">
7060
{navItems.map((item) => (

0 commit comments

Comments
 (0)