diff --git a/client/src/views/header/index.js b/client/src/views/header/index.js index 07d3da514..920d191de 100644 --- a/client/src/views/header/index.js +++ b/client/src/views/header/index.js @@ -107,7 +107,9 @@ class Header extends Component { const menus = allMenus.map((menu, index) => { return ( -
this.setState({ open: index })} onMouseLeave={() => this.setState({ open: null })} > @@ -133,28 +135,6 @@ class Header extends Component { ) - const mobileMenus = allMenus.map((menu, index) => { - return ( -
this.setState({ open: index })} - onMouseLeave={() => this.setState({ open: null })} - > - -
- { - menu.submenus.map((submenu, index) => { - // const Icon = submenu.icon - return ( - - ) - })} -
-
- ) - }) - return (
} { (width === 'xs' || width === 'sm') ? mobileMenusButton : menus } - { (width === 'xs' || width === 'sm') && this.state.mobileOpen ? mobileMenus : '' } + { (width === 'xs' || width === 'sm') && this.state.mobileOpen ? menus : '' }