diff --git a/Client/src/Components/Sidebar/index.jsx b/Client/src/Components/Sidebar/index.jsx index 200c5dd01..80a47b68c 100644 --- a/Client/src/Components/Sidebar/index.jsx +++ b/Client/src/Components/Sidebar/index.jsx @@ -632,7 +632,7 @@ function Sidebar() { )} {collapsed && } - { dispatch(setMode("light")); closePopup(); @@ -647,7 +647,7 @@ function Sidebar() { }} > Dark - + */} { const { isLoading } = useSelector((state) => state.uptimeMonitors); const { isLoading: authIsLoading } = useSelector((state) => state.auth); const { timezone } = useSelector((state) => state.ui); + const {mode} = useSelector((state) => state.ui); const [checksIsLoading, setChecksIsLoading] = useState(false); const [form, setForm] = useState({ ttl: checkTTL ? (checkTTL / SECONDS_PER_DAY).toString() : 0, @@ -182,6 +183,26 @@ const Settings = ({ isAdmin }) => { /> + + + Appearance + + Switch between light and dark mode. + + + + + + {isAdmin && (