Skip to content

Commit

Permalink
removed window.ineerwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
Speedwares committed Feb 26, 2022
1 parent dc293ea commit 1c959fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/Sidebar/SidebarContent/SidebarContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const SidebarContent = forwardRef(({ children, className, ...rest }, ref) => {
const { handleToggleSidebar, breakpoint } = useContext(SidebarContext);


const [width, setWidth] = useState(window.innerWidth);
const [width, setWidth] = useState(0);
const finalbreakpoint = breakpoint || 720;


Expand Down

0 comments on commit 1c959fb

Please sign in to comment.