fix public navbar load when logged in

This commit is contained in:
Oliver Kieselbach
2026-02-18 15:37:49 +01:00
parent f1cff9b89e
commit 5341bab665
2 changed files with 7 additions and 2 deletions
@@ -1 +1 @@
56
57
@@ -5,10 +5,15 @@ import { useAuth } from "../contexts/AuthContext";
import { useTheme } from "../contexts/ThemeContext";
export function PublicSiteNavbar({ showSectionLinks }: { showSectionLinks: boolean }) {
const { login } = useAuth();
const { login, isAuthenticated } = useAuth();
const { theme, toggleTheme } = useTheme();
const isDark = theme === "dark";
// Logged-in users should only see the main authenticated app navbar.
if (isAuthenticated) {
return null;
}
return (
<nav
className={`sticky top-0 z-30 backdrop-blur-md border-b shadow-sm ${