diff --git a/src/SidebarLayout.js b/src/SidebarLayout.js index f851162..207b823 100644 --- a/src/SidebarLayout.js +++ b/src/SidebarLayout.js @@ -261,6 +261,7 @@ export default class Layout extends React.Component { const { menu, update } = this.state const opts = route ? route.props : {} + if (opts.layout === false) return children const Wrapper = opts.fullWidth ? React.Fragment : MaxWidth diff --git a/test/components.js b/test/components.js index c7b8e3e..70472ef 100644 --- a/test/components.js +++ b/test/components.js @@ -21,7 +21,7 @@ import { browserEnv() // make sure this doesn't conflict with webpack tests -global.DIRNAME = __dirname +global.DIRNAME = 'beep' const renderJSON = el => render(el).toJSON()