auto connects user to session if available

This commit is contained in:
2025-08-20 19:53:32 +02:00
parent 2a23f1dedc
commit 5bdf1ed940
2 changed files with 19 additions and 39 deletions
+1 -5
View File
@@ -23,26 +23,22 @@ const pageConfig: Record<
string,
{
showAuthStatus: boolean;
showSessionChecker: boolean;
showNav: boolean;
showQuota: boolean;
}
> = {
"/nominations": {
showAuthStatus: true,
showSessionChecker: false,
showQuota: true,
showNav: navToggle,
},
"/mobile-voting": {
showAuthStatus: false,
showSessionChecker: false,
showQuota: false,
showNav: false,
},
"/lobby": {
showAuthStatus: true,
showSessionChecker: false,
showQuota: true,
showNav: navToggle,
},
@@ -60,7 +56,7 @@ function LayoutContent({ children }: { children: React.ReactNode }) {
return (
<>
{config.showSessionChecker && <SessionChecker />}
<SessionChecker />
{config.showAuthStatus && <AuthStatus />}
{children}
{config.showNav && <NavigationBar />}