From 483952c1b4a8068067a2c5f24c64fae1f93f766a Mon Sep 17 00:00:00 2001 From: Jarrod Norwell Date: Thu, 26 Sep 2024 03:19:04 +0800 Subject: [PATCH] Added automatic light and dark mode --- src/Checklist/Checklist.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Checklist/Checklist.tsx b/src/Checklist/Checklist.tsx index 9fa90e4..5ffb0ed 100644 --- a/src/Checklist/Checklist.tsx +++ b/src/Checklist/Checklist.tsx @@ -9,8 +9,10 @@ import { IconInfoCircle } from '@tabler/icons-react'; export default function Checklist() { const icon = ; + const date = new Date(); + return ( - + = 7 && date.getHours() <= 19 ? "light" : "dark"}> Checklist