diff --git a/src/components/protected-layout.tsx b/src/components/protected-layout.tsx
index 96b2bc6..5ac716c 100644
--- a/src/components/protected-layout.tsx
+++ b/src/components/protected-layout.tsx
@@ -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 {children};
+ return (
+
+ {children}
+
+
+ );
}
diff --git a/src/components/timer/timer-widget.tsx b/src/components/timer/timer-widget.tsx
index f687b49..9ec855c 100644
--- a/src/components/timer/timer-widget.tsx
+++ b/src/components/timer/timer-widget.tsx
@@ -96,7 +96,7 @@ export function TimerWidget() {
)}
{!active.caseId && (
-
Attach to a case to save as time entry.
+ Attach to a case to save as a time entry.
)}
diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx
index de705b2..be672d6 100644
--- a/src/routes/__root.tsx
+++ b/src/routes/__root.tsx
@@ -1,5 +1,6 @@
import { Outlet, Link, createRootRoute, HeadContent, Scripts } from "@tanstack/react-router";
import { AuthProvider } from "@/lib/auth";
+import { TimerProvider } from "@/lib/timer";
import appCss from "../styles.css?url";
@@ -70,7 +71,9 @@ function RootShell({ children }: { children: React.ReactNode }) {
function RootComponent() {
return (
-
+
+
+
);
}