Build [v1.4.0] - Audit Dashboard & LDAP Restoration

This commit is contained in:
Daniel Bedeleanu
2026-04-12 09:39:17 +03:00
parent 5cceba21f4
commit f3d861b1a2
23 changed files with 973 additions and 382 deletions

View File

@@ -47,10 +47,14 @@ export default function PageShell({ children, requireAdmin = false }: PageShellP
}, [requireAdmin, router, pathname]);
if (!mounted) return null;
if (!mounted) {
return <div className="min-h-screen bg-slate-950" />;
}
// Prevent flicker by not rendering background if we're redirecting to login
if (!currentUser && pathname !== '/login') return null;
// Prevent flicker by showing dark background if we're redirecting to login
if (!currentUser && pathname !== '/login') {
return <div className="min-h-screen bg-slate-950" />;
}
return (
<div className="min-h-screen bg-slate-950 text-slate-100 flex flex-col">