MCPcopy Create free account
hub / github.com/flatlogic/react-material-admin / handleWindowWidthChange

Function handleWindowWidthChange

src/components/Header/Header.js:72–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 });
71
72 function handleWindowWidthChange() {
73 let windowWidth = window.innerWidth;
74 let breakpointWidth = theme.breakpoints.values.md;
75 let isSmallScreen = windowWidth < breakpointWidth;
76 setSmall(isSmallScreen);
77 }
78
79 return (
80 <AppBar position='fixed' className={classes.appBar}>

Callers 2

Header.jsFile · 0.70
Sidebar.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected