Code: Add the code below insrc/containers/Sidebar/Sidebar.js in between <Menu> Component. to add a new menu item in the sidebar.

// Add New Menu
<Menu.Item key="email">
  <Link to={`${url}/newmenu`}>
    <span className="isoMenuHolder">
      <i className="ion-android-mail" />
      <span className="nav-text">New Menu</span>

For Routing the menu now add the below code to the src/containers/App/AppRouter.js file. and add a New Component which will render when you click on the menu.


//menu routes
    component={asyncComponent(() => import('path to NewMenuComponent'))}

results matching ""

    No results matching ""