Skip to content

Commit 80a52c0

Browse files
committed
add toggle switcher setting panel
1 parent 242bbf9 commit 80a52c0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libs/context/AppContext.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ export const StateContextProvider = memo(({ children }) => {
2323
setCurrentColor(e.target.value);
2424
localStorage.setItem("color", e.target.value);
2525
};
26-
const toggleColor = (value) => {
27-
setCurrentColor(value);
28-
};
2926
const [screenSize, handleSize] = useResize();
3027
const handleCloseSideBar = useCallback(() => {
3128
if (activeMenu && screenSize <= 900) {
@@ -46,7 +43,7 @@ export const StateContextProvider = memo(({ children }) => {
4643
themeSettings,
4744
setThemeSettings,
4845
}),
49-
[activeMenu, screenSize]
46+
[activeMenu, screenSize, currentColor, currentMode, themeSettings]
5047
);
5148
useLayoutEffect(() => {
5249
toggleMenu(true);

0 commit comments

Comments
 (0)