Skip to content

Commit af14ff2

Browse files
authored
Merge pull request #101 from rvsia/open-menu
Set closed menu only on landing page
2 parents 03e0009 + c0773a9 commit af14ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-renderer-demo/src/layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const useStyles = makeStyles(theme => ({
104104

105105
const Layout = ({ children, location: { pathname }}) => {
106106
const classes = useStyles();
107-
const [ open, setOpen ] = React.useState(false);
107+
const [ open, setOpen ] = React.useState(pathname !== '/');
108108
const searchRef = React.useRef(null);
109109

110110
function handleDrawerOpen() {

0 commit comments

Comments
 (0)