feat: add comment for temporary theme logic

This commit is contained in:
Peter Carl Pardo
2024-12-15 23:51:53 +08:00
parent dd488fecb4
commit efa106f732

View File

@@ -4,6 +4,7 @@ import { IconButton } from "@mui/material";
import SunAndMoonIcon from "./SunAndMoonIcon";
const ThemeSwitch = () => {
// TODO: change to use the MUI theme
const [currentTheme, setCurrentTheme] = useState("light");
const toggleTheme = () =>
setCurrentTheme((prevState) => (prevState === "light" ? "dark" : "light"));