feat: add comment for temporary theme logic
This commit is contained in:
1 parent
dd488fecb4
commit
efa106f732
1 file changed
+1
@@ -4,6 +4,7 @@ import { IconButton } from "@mui/material";
|
|||||||
import SunAndMoonIcon from "./SunAndMoonIcon";
|
import SunAndMoonIcon from "./SunAndMoonIcon";
|
||||||
|
|
||||||
const ThemeSwitch = () => {
|
const ThemeSwitch = () => {
|
||||||
|
// TODO: change to use the MUI theme
|
||||||
const [currentTheme, setCurrentTheme] = useState("light");
|
const [currentTheme, setCurrentTheme] = useState("light");
|
||||||
const toggleTheme = () =>
|
const toggleTheme = () =>
|
||||||
setCurrentTheme((prevState) => (prevState === "light" ? "dark" : "light"));
|
setCurrentTheme((prevState) => (prevState === "light" ? "dark" : "light"));
|
||||||
|
|||||||
Reference in new issue
Block a user