feat: correo via banco mail, rol supervisor y lint en cero

This commit is contained in:
Nurfog committed 2026-09-15 17:28:52 -03:00
1 parent 2502de4e06
commit b1cddbac6c
15 files changed
+677 -107

No files matched your search

+12 -7
View File
@@ -39,13 +39,18 @@ export default function SlaPage() {
}, []);
useEffect(() => {
if (authLoading) return;
if (user?.role !== "admin") {
setLoading(false);
return;
}
fetchPolicies();
}, [fetchPolicies, authLoading, user?.role]);
if (authLoading || user?.role !== "admin") return;
getSLAPolicies()
.then((p) => {
setPolicies(p);
setError("");
})
.catch((err) => {
setError(err instanceof Error ? err.message : "Error al cargar");
setPolicies([]);
})
.finally(() => setLoading(false));
}, [authLoading, user?.role]);
const openCreate = () => {
setEditing(null);