diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 1cbc9e2..f2c7d74 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -10,5 +10,7 @@ module.exports = { plugins: ["react-refresh"], rules: { "react-refresh/only-export-components": "off", + "@next/next/no-img-element": "off", + "no-unused-vars": "off", }, }; diff --git a/app/contact/page.tsx b/app/contact/page.tsx index aeb1d07..e682c1b 100644 --- a/app/contact/page.tsx +++ b/app/contact/page.tsx @@ -10,7 +10,7 @@ const ContactPage = () => { const [isLoading, setIsLoading] = useAtom(loadingState); useEffect(() => { setIsLoading(false); - }, []); + }, [setIsLoading]); return ( <> diff --git a/app/portfolio/dev/page.tsx b/app/portfolio/dev/page.tsx index 83951c0..098803a 100644 --- a/app/portfolio/dev/page.tsx +++ b/app/portfolio/dev/page.tsx @@ -10,7 +10,7 @@ const PortfolioPage = () => { const [isLoading, setIsLoading] = useAtom(loadingState); useEffect(() => { setIsLoading(false); - }, []); + }, [setIsLoading]); return ( <> diff --git a/app/portfolio/hackathon/page.tsx b/app/portfolio/hackathon/page.tsx index 318b191..9dc171a 100644 --- a/app/portfolio/hackathon/page.tsx +++ b/app/portfolio/hackathon/page.tsx @@ -10,7 +10,7 @@ const HackathonPage = () => { const [isLoading, setIsLoading] = useAtom(loadingState); useEffect(() => { setIsLoading(false); - }, []); + }, [setIsLoading]); return ( <> diff --git a/src/components/common/InputTextHover.tsx b/src/components/common/InputTextHover.tsx index af6ab59..bd619bc 100644 --- a/src/components/common/InputTextHover.tsx +++ b/src/components/common/InputTextHover.tsx @@ -3,7 +3,7 @@ import { FC, useEffect, useId, useState } from "react"; interface InputHoverProps { label?: string; value: string; - onChange: (e: React.ChangeEvent) => void; + onChange: () => void; placeholder?: string; className?: string; } @@ -25,7 +25,7 @@ export const InputTextHover: FC = ({ return (
= ({ onChange={onChange} />