Skip to content

Commit

Permalink
window with issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aifert committed Mar 15, 2024
1 parent 80e235d commit ebcaed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { primaryNav } from "./links";
import NavItem from "./nav-item";

export default function NavBar() {
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
const [windowWidth, setWindowWidth] = useState(0);

useEffect(() => {
const handleResize = () => {
Expand Down

0 comments on commit ebcaed2

Please sign in to comment.