Build [v1.4.0] - Audit Dashboard & LDAP Restoration
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user