Skip to content

Commit

Permalink
chore: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Mazzon committed Sep 21, 2023
1 parent fd2265b commit 75b1d39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/hooks/useBreakpoints.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { useMediaQuery } from "react-responsive";
import { ContentWidth } from "../utils/sizes";
import { ContentWidth } from "@/utils/sizes";

const useBreakpoints = () => {
const [isBreakpointReady, setIsBreakpointReady] = useState(false);
Expand All @@ -24,7 +24,7 @@ const useBreakpoints = () => {
return;
}
setIsBreakpointReady(true);
}, [isMobile, isMd, isLg, isXl]);
}, [isMobile, isMd, isLg, isXl, isBreakpointReady]);

return [isMobile, isMd, isLg, isXl, isBreakpointReady];
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"dev": "next",
"build": "next build",
"start": "npm run build && next start"
"start": "yarn build && next start"
},
"dependencies": {
"@types/node": "20.6.1",
Expand Down

0 comments on commit 75b1d39

Please sign in to comment.