From 4cbf9c7d337cecdd8ccd592e237e5d9543994467 Mon Sep 17 00:00:00 2001 From: Maria Bonde Date: Fri, 23 Aug 2024 11:15:29 +0200 Subject: [PATCH] fjernet mobile fra aktivitieter --- src/hemsedal24/activities.tsx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/hemsedal24/activities.tsx b/src/hemsedal24/activities.tsx index cdae5636f..6fc2391ea 100644 --- a/src/hemsedal24/activities.tsx +++ b/src/hemsedal24/activities.tsx @@ -9,20 +9,7 @@ import ActivityBlock from "./components/ActivityBlock"; import hund from "./images/hund.svg" import sykling from "./images/sykling.svg" import via from "./images/viaferrata.svg" -import { useEffect, useState} from "react"; const Activities: NextPage = () => { - const [mobile, setMobile] = useState(false); - - useEffect(() => { - const handleWindowSizeChange = () => { - setMobile(window.innerWidth <= 500); - }; - - handleWindowSizeChange(); // Set initial value after component mounts - window.addEventListener('resize', handleWindowSizeChange); - - return () => window.removeEventListener('resize', handleWindowSizeChange); - }, []); return (