Skip to content

Commit

Permalink
removed deprecated var
Browse files Browse the repository at this point in the history
  • Loading branch information
KamyarTaher committed Sep 28, 2023
1 parent df6e635 commit 353aa57
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 213 deletions.
3 changes: 1 addition & 2 deletions components/navBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export const NavBar = () => {
const [isTop, setIsTop] = React.useState(true);
React.useEffect(() => {
const onScroll = () => {
const scrollTop =
window.pageYOffset || document.documentElement.scrollTop;
const scrollTop = window.scrollY || document.documentElement.scrollTop;
setIsTop(scrollTop === 0);
};
window.addEventListener("scroll", onScroll);
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.9",
"@mui/material": "^5.14.10",
"@mui/system": "^5.14.10",
"@mui/icons-material": "^5.14.11",
"@mui/material": "^5.14.11",
"@mui/system": "^5.14.11",
"@react-spring/three": "^9.7.3",
"@react-three/drei": "^9.84.1",
"@react-three/fiber": "^8.14.2",
"autoprefixer": "^10.4.15",
"eslint": "8.49.0",
"eslint-config-next": "13.5.1",
"next": "13.5.1",
"@react-three/drei": "^9.86.0",
"@react-three/fiber": "^8.14.3",
"autoprefixer": "^10.4.16",
"eslint": "8.50.0",
"eslint-config-next": "13.5.3",
"next": "13.5.3",
"postcss": "^8.4.30",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-scroll": "^1.8.9",
"sharp": "^0.32.6",
"tailwindcss": "^3.3.3",
"three": "^0.156.1",
"three-stdlib": "^2.26.0"
"three-stdlib": "^2.26.9"
},
"devDependencies": {
"@types/node": "^20.6.2",
"@types/react": "^18.2.22",
"@types/react-dom": "18.2.7",
"@types/react-scroll": "^1.8.7",
"@types/node": "^20.7.1",
"@types/react": "^18.2.23",
"@types/react-dom": "18.2.8",
"@types/react-scroll": "^1.8.8",
"@types/three": "^0.156.0",
"typescript": "^5.2.2"
}
Expand Down
Loading

0 comments on commit 353aa57

Please sign in to comment.