diff --git a/web/src/components/Dashboard.tsx b/web/src/components/Dashboard.tsx index 908c74d..602c3ab 100644 --- a/web/src/components/Dashboard.tsx +++ b/web/src/components/Dashboard.tsx @@ -11,7 +11,8 @@ import { CreateTimerModal } from './CreateTimerModal'; import { AlarmOverlay } from './AlarmOverlay'; import { requestNotificationPermission } from '@/lib/notifications'; import { formatTime, formatDate } from '@/lib/format'; -import { Plus, Clock, Bell, Keyboard } from 'lucide-react'; +import { Plus, Clock, Bell, Keyboard, Sun, Moon } from 'lucide-react'; +import { useTheme } from '@/lib/use-theme'; export function Dashboard() { const [isCreateOpen, setIsCreateOpen] = useState(false); @@ -20,6 +21,7 @@ export function Dashboard() { const timers = useTimerStore((s) => s.timers); const now = useTimerStore((s) => s.now); const { pause, resume } = useTimerStore(); + const { theme, toggle: toggleTheme } = useTheme(); // Start the tick loop useTickLoop(); @@ -110,6 +112,14 @@ export function Dashboard() { {formatTime(now)} · {formatDate(now)} +