Skip to content

Commit

Permalink
remove unused import and clean comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sehnryr committed Dec 14, 2024
1 parent a60c33d commit 54c6913
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Outlet,
RouterProvider,
} from "react-router-dom";
import { FiBook, FiGlobe, FiGrid, FiSettings } from "react-icons/fi"; // Icônes
import { FiGlobe, FiGrid, FiSettings } from "react-icons/fi";
import Browse from "./pages/Browse/Browse.tsx";
import ExtensionBrowse from "./pages/Browse/ExtensionBrowse.tsx";
import Extensions from "./pages/Extensions.tsx";
Expand All @@ -23,10 +23,6 @@ const router = createBrowserRouter([
path: "/",
element: <Browse />,
},
// {
// path: "/browse",
// element: <Browse />,
// },
{
path: "/browse/:extensionId",
element: <ExtensionBrowse />,
Expand All @@ -47,13 +43,8 @@ const router = createBrowserRouter([
},
]);

// Fonction pour gérer l'état d'onglet actif
function Layout() {
// const location = useLocation();

// Définir les onglets et leurs routes
const navItems = [
// { path: "/", icon: <FiBook />, label: "Library" },
{ path: "/", icon: <FiGlobe />, label: "Browse" },
{ path: "/extensions", icon: <FiGrid />, label: "Extensions" },
{ path: "/more", icon: <FiSettings />, label: "More" },
Expand All @@ -64,7 +55,6 @@ function Layout() {
<main className="flex-1 p-2 overflow-y-auto">
<Outlet />
</main>
{/* Barre de navigation, shadow vers le haut */}
<nav className="w-full bg-base-200 px-2 border-t border-base-100 shadow-[rgba(0,_0,_0,_0.4)_0px_30px_90px]">
<div className="grid grid-cols-3 max-w-xl mx-auto py-3">
{navItems.map((item) => (
Expand Down

0 comments on commit 54c6913

Please sign in to comment.