diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index a7a4bfd..8f8b3fc 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -4,14 +4,13 @@ import Link from 'next/link'; import { usePathname } from 'next/navigation'; type NavChild = { - href: string; // siempre string + href: string; // siempre string label: string; }; type NavItem = - | { href: string; label: string } // items normales - | { label: string; children: NavChild[] } // items con submenu - + | { href: string; label: string } // items normales + | { label: string; children: NavChild[] }; // items con submenu const Navbar: React.FC = () => { const pathname = usePathname(); @@ -26,7 +25,10 @@ const Navbar: React.FC = () => { label: 'Carga Masiva', children: [ { href: '/user/eventos/carga_masiva', label: 'Carga Masiva Eventos' }, - { href: '/user/eventos/carga_masiva_banner', label: 'Carga Masiva Imagenes' }, + { + href: '/user/eventos/carga_masiva_banner', + label: 'Carga Masiva Imagenes', + }, ], }, { href: '/user/usuarios', label: 'Usuarios' }, @@ -39,7 +41,8 @@ const Navbar: React.FC = () => { { href: '/login', label: 'Cerrar sesión' }, ]; - const navItems = tipo_usuario === 'administrador' ? navItemsAdmin : navItemsUser; + const navItems = + tipo_usuario === 'administrador' ? navItemsAdmin : navItemsUser; return (