feat: all colors inside of sideBar

This commit is contained in:
Caio Cabral committed 2025-01-11 18:06:47 -05:00
1 parent 74c598e191
commit 5fcc87dab4
3 files changed
+34 -22

No files matched your search

+5 -1
View File
@@ -15,7 +15,7 @@ import { useDispatch, useSelector } from "react-redux";
import { setMode } from "../../Features/UI/uiSlice";
import "./index.css";
const ThemeSwitch = ({ width = 48, height = 48 }) => {
const ThemeSwitch = ({ width = 48, height = 48, color }) => {
const mode = useSelector((state) => state.ui.mode);
const dispatch = useDispatch();
@@ -37,6 +37,10 @@ const ThemeSwitch = ({ width = 48, height = 48 }) => {
display: "flex",
alignItems: "center",
justifyContent: "center",
"& svg >:is(circle, g)": {
fill: color,
stroke: color,
},
}}
>
<SunAndMoonIcon />