From 38169983d1babde406df4608db58fba3ca2777a9 Mon Sep 17 00:00:00 2001 From: Vichea <48352653+vicheanath@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:52:08 -0600 Subject: [PATCH] fix : build wrong --- src/App.js | 1 - src/pages/home.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 ( <>