diff --git a/src/App.js b/src/App.js index d111a9f..7f9707f 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,4 @@ import React, { useEffect } from "react"; -import { Route } from "react-router-dom"; import { gsap } from "gsap"; import "./styles/App.scss"; import Navigation from "./components/navigation"; diff --git a/src/pages/home.js b/src/pages/home.js index 10d1090..b09ce9f 100644 --- a/src/pages/home.js +++ b/src/pages/home.js @@ -57,7 +57,7 @@ const Home = ({ dimensions }) => { useEffect(() => { let vh = dimensions.height * 0.01; document.documentElement.style.setProperty("--vh", `${vh}px`); - }, [dimensions.width]); + }, [dimensions.height, dimensions.width]); return ( <>