Added automatic light and dark mode

This commit is contained in:
Jarrod Norwell 2024-09-26 03:19:04 +08:00
parent 44c7ba3ce7
commit 483952c1b4

View File

@ -9,8 +9,10 @@ import { IconInfoCircle } from '@tabler/icons-react';
export default function Checklist() {
const icon = <IconInfoCircle />;
const date = new Date();
return (
<MantineProvider theme={theme}>
<MantineProvider theme={theme} forceColorScheme={date.getHours() >= 7 && date.getHours() <= 19 ? "light" : "dark"}>
<Container my={'xl'}>
<Badge>
Checklist