Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-17 00:26:30 +00:00
co-authored by renee-png
parent 24c5326293
commit 28ad65edc6
3 changed files with 12 additions and 3 deletions
+7 -1
View File
@@ -2,6 +2,7 @@ import { useEffect, type ReactNode } from "react";
import { useNavigate } from "@tanstack/react-router";
import { useAuth } from "@/lib/auth";
import { AppShell } from "@/components/app-shell";
import { TimerWidget } from "@/components/timer/timer-widget";
import { Loader2 } from "lucide-react";
export function ProtectedLayout({ children, adminOnly }: { children: ReactNode; adminOnly?: boolean }) {
@@ -25,5 +26,10 @@ export function ProtectedLayout({ children, adminOnly }: { children: ReactNode;
);
}
return <AppShell>{children}</AppShell>;
return (
<AppShell>
{children}
<TimerWidget />
</AppShell>
);
}