Skip to content

Commit

Permalink
fix : build wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
vicheanath committed Feb 13, 2024
1 parent 97f8360 commit 3816998
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down

0 comments on commit 3816998

Please # to comment.