From a88c2e5f102dabcfb551c7403606cce9c361c777 Mon Sep 17 00:00:00 2001 From: Daniel Fjeldstad Date: Thu, 9 Dec 2021 02:15:44 +0100 Subject: [PATCH] Fix "method_lines" issue --- components/Header/Hamburger.component.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/Header/Hamburger.component.jsx b/components/Header/Hamburger.component.jsx index b3595edcd..930c0ef81 100644 --- a/components/Header/Hamburger.component.jsx +++ b/components/Header/Hamburger.component.jsx @@ -5,9 +5,7 @@ import Link from 'next/link'; import LINKS from '../../utils/constants/LINKS'; /** - * Shows the mobile menu. - * Shows a X when mobile menu is expanded. - * Uses React-spring for animations. + * Shows the mobile menu. */ const Hamburger = () => { const [isExpanded, setisExpanded] = useState(false); @@ -35,7 +33,6 @@ const Hamburger = () => { opacity: isExpanded ? 0 : 1, }, }); - const showXHideHamburgerAnimation = useSpring({ to: [ { @@ -48,7 +45,6 @@ const Hamburger = () => { display: isExpanded ? 'none' : 'inline', }, }); - return ( <>