You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to wrap the NavDrawer in a custom component which accepts a list of menu items. When doing this, Layout warns that it only accepts Panel as a child, with optional NavDrawer and Sidebar:
Warning: Failed prop type: Layout should have a Panel for a child, optionally preceded by a NavDrawer and/or followed by a Sidebar.
in Layout (created by Themed Layout)
in Themed Layout (created by App)
in div (created by App)
in App (created by RouterContext)
in RouterContext (created by Router)
in Router
My layout has a NavMenu component, which is causing the issue:
...
<Layout>
<NavMenu items={menuItems}></NavMenu>
...
class NavMenu extends React.Component {
render () {
return <NavDrawer ...>{generatedMenuItems}</NavDrawer>;
}
}
Is this likely to cause issues? If not, is there be some way to disable the warning?