Skip to content

Commit

Permalink
fjernet mobile fra aktivitieter
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaBonde committed Aug 23, 2024
1 parent 672fbfc commit 4cbf9c7
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/hemsedal24/activities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div id="top" className={styles.tur}>
<meta name="theme-color" content="#EDE8D7"/>
Expand Down

0 comments on commit 4cbf9c7

Please sign in to comment.