diff --git a/.eslintrc.json b/.eslintrc.json index 40a4775..2884730 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,6 +2,7 @@ "extends": ["next/core-web-vitals", "next/typescript"], "rules": { "@typescript-eslint/no-explicit-any": "off", - "@next/next/no-img-element": "off" + "@next/next/no-img-element": "off", + "react-hooks/exhaustive-deps": "off" } } diff --git a/components/Switch.tsx b/components/Switch.tsx index 0d6fbe1..4b0b0c4 100644 --- a/components/Switch.tsx +++ b/components/Switch.tsx @@ -53,7 +53,7 @@ export default function Switch({ inline: "center", }); } - }, [nowTag, allTag]); + }, [nowTag]); return (