fix: AuthProvider en layout raíz (login usaba contexto vacío y no hacía nada)

This commit is contained in:
Nurfog committed 2026-09-10 13:50:36 -03:00
1 parent 9494935775
commit 7d72970f8a
2 files changed
+6 -7

No files matched your search

+2 -6
View File
@@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import { AuthProvider, useAuth } from "@/lib/auth";
import { useAuth } from "@/lib/auth";
import Sidebar from "@/components/Sidebar";
import { useRouter } from "next/navigation";
import { useEffect } from "react";
@@ -98,9 +98,5 @@ function TopNavbarUser() {
}
export default function AppLayout({ children }: { children: React.ReactNode }) {
return (
<AuthProvider>
<AppShell>{children}</AppShell>
</AuthProvider>
);
return <AppShell>{children}</AppShell>;
}