MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / toggleDrawer

Function toggleDrawer

src/components/Header/MobileHeader.tsx:27–34  ·  view source on GitHub ↗
(isOpen)

Source from the content-addressed store, hash-verified

25 const isHome = pathname === "/";
26
27 const toggleDrawer = (isOpen) => {
28 setOpen(isOpen);
29 if (isOpen) {
30 window.document.body.classList.add("mobile-top-nav-open");
31 } else {
32 window.document.body.classList.remove("mobile-top-nav-open");
33 }
34 };
35
36 const renderList = () => (
37 <List

Callers 2

renderListFunction · 0.85
MobileHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected