We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7f1926 + f5f577b commit 9e78f73Copy full SHA for 9e78f73
src/components/menu/Menu.tsx
@@ -5,7 +5,6 @@ import { setTheme } from "@/RTK/slices/themeSlice";
5
import { FiMoon } from "react-icons/fi";
6
import { RootState } from "@/RTK/store";
7
import { theme } from "@/utils/theme";
8
-import { useEffect } from "react";
9
10
import Image from "next/image";
11
import Link from "next/link";
@@ -14,10 +13,6 @@ const Menu = () => {
14
13
const { dark } = useSelector((state: RootState) => state.theme);
15
const dispatch = useDispatch();
16
17
- useEffect(() => {
18
- dispatch(setTheme(theme()));
19
- }, [dispatch]);
20
-
21
return (
22
<nav className="w-full flex items-center justify-between p-1">
23
<h1>
0 commit comments