mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-07 00:59:29 -05:00
feat: cleanup
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
// import "./index.css";
|
||||
import "./index.css";
|
||||
import { IconButton } from "@mui/material";
|
||||
import SunAndMoonIcon from "./SunAndMoonIcon";
|
||||
// import SunAndMoonIcon from "./SunAndMoonIcon";
|
||||
|
||||
const ThemeSwitch = () => {
|
||||
const [currentTheme, setCurrentTheme] = useState("light");
|
||||
@@ -11,7 +10,6 @@ const ThemeSwitch = () => {
|
||||
|
||||
useEffect(() => {
|
||||
document.body.setAttribute("data-theme", currentTheme);
|
||||
console.log(currentTheme);
|
||||
}, [currentTheme]);
|
||||
|
||||
return (
|
||||
@@ -27,18 +25,6 @@ const ThemeSwitch = () => {
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
// "& .sun-and-moon": {
|
||||
// transformOrigin: "center",
|
||||
// },
|
||||
// "& .sun": {
|
||||
// fill: "var(--icon-fill)",
|
||||
// transition: "transform 0.5s ease",
|
||||
// ...(currentTheme === "dark" && { transform: "scale(1.75)" }),
|
||||
// },
|
||||
// "& .moon > circle": {
|
||||
// transform: currentTheme === "dark" ? "translateX(-7px)" : "none",
|
||||
// transition: "transform 0.25s ease",
|
||||
// },
|
||||
}}
|
||||
>
|
||||
<SunAndMoonIcon />
|
||||
|
||||
Reference in New Issue
Block a user