diff --git a/frontend/src/components/AppShell.tsx b/frontend/src/components/AppShell.tsx index 17364bf..074b29c 100644 --- a/frontend/src/components/AppShell.tsx +++ b/frontend/src/components/AppShell.tsx @@ -1,4 +1,10 @@ -import { createContext, useContext, useEffect, useState, type ReactNode } from "react"; +import { + createContext, + useContext, + useEffect, + useState, + type ReactNode, +} from "react"; import { NavLink, Outlet } from "react-router-dom"; import { cn } from "../ui/index.js"; import { useSession } from "../lib/session.js"; @@ -41,7 +47,11 @@ const ADMIN_NAV: NavItem[] = [ { to: "/admin/audit", label: "Journal", icon: ActivityIcon }, ]; -const ACCOUNT_NAV: NavItem = { to: "/profile", label: "Mon compte", icon: SettingsIcon }; +const ACCOUNT_NAV: NavItem = { + to: "/profile", + label: "Mon compte", + icon: SettingsIcon, +}; const navClass = ({ isActive }: { isActive: boolean }) => cn( @@ -78,7 +88,11 @@ export const AppShell = () => { const allNav = [...NAV, ...(isAdmin ? ADMIN_NAV : []), ACCOUNT_NAV]; const brand = ( - setMenuOpen(false)}> + setMenuOpen(false)} + > { const renderLink = (item: NavItem) => { const Icon = item.icon; return ( - setMenuOpen(false)}> + setMenuOpen(false)} + > {t(item.label)} @@ -107,7 +126,9 @@ export const AppShell = () => { }; return ( - +
@@ -117,11 +138,17 @@ export const AppShell = () => { {brand}
@@ -149,7 +176,6 @@ export const AppShell = () => { /> -