fixed middleware and barnavigation

This commit is contained in:
2025-10-30 14:19:24 -06:00
parent c46e561af1
commit 7cf3400790
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -8,6 +8,8 @@ import { usePathname } from "next/navigation";
function Header() {
const pathname = usePathname();
const rutasConBar = ["/escaner", "/AgregarEquipo"];
return (
<header className={header.header}>
<Link
@@ -38,7 +40,7 @@ function Header() {
alignItems: "end",
}}
>
{pathname !== "/" && <BarNavigation />}
{rutasConBar.includes(pathname) && <BarNavigation />}
</div>
</header>
);