From 70516e33337e885a624d4681d6f04d9a3fb7b627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veikko=20Lintuj=C3=A4rvi?= Date: Sun, 11 May 2025 19:14:10 +0300 Subject: [PATCH] Fix linting errors --- .eslintrc.json | 7 +++++-- pages/_document.tsx | 2 +- pages/components/Logo.tsx | 6 ------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bffb357..cd0edd9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,6 @@ { - "extends": "next/core-web-vitals" -} + "extends": "next/core-web-vitals", + "rules": { + "@next/next/no-img-element": "off" + } +} \ No newline at end of file diff --git a/pages/_document.tsx b/pages/_document.tsx index 4cd8386..11908bd 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -6,7 +6,7 @@ class MyDocument extends Document { diff --git a/pages/components/Logo.tsx b/pages/components/Logo.tsx index a3dcae2..bc68a89 100644 --- a/pages/components/Logo.tsx +++ b/pages/components/Logo.tsx @@ -3,12 +3,6 @@ import styles from '../../styles/Logo.module.scss'; import Link from 'next/link'; const Logo = () => { - const [isDesktop, setIsDesktop] = useState(true); - - useEffect(() => { - setIsDesktop(window.innerWidth > 768); - }, []); - return (