We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03e0009 + c0773a9 commit af14ff2Copy full SHA for af14ff2
packages/react-renderer-demo/src/layout.js
@@ -104,7 +104,7 @@ const useStyles = makeStyles(theme => ({
104
105
const Layout = ({ children, location: { pathname }}) => {
106
const classes = useStyles();
107
- const [ open, setOpen ] = React.useState(false);
+ const [ open, setOpen ] = React.useState(pathname !== '/');
108
const searchRef = React.useRef(null);
109
110
function handleDrawerOpen() {
0 commit comments