menu.js 1.24 KB
const Menu =  [
//  { header: 'Apps' },
  // {
  //   title: 'Dashboard',
  //   // group: 'apps',
  //   name: 'dashboard',
  //   icon: 'view_module',
  // },
   {
    title: 'Class',
    // group: 'apps',
    name: 'addclass',
    icon: 'local_library',
  },
  {
    title: 'Section',
    // group: 'apps',
    name: 'section',
    icon: 'view_module',
  },
  {
    title: 'Teachers',
    // group: '',
    name: 'teachers',
    icon: 'group',
  },
  {
    title: 'Students',
    // group: 'apps',
    name: 'Students',
    icon: 'school',
  },
  // {
  //   title: 'Event',
  //   name: 'event',
  //   icon: 'event_available',
  // },
  {
    title: 'News',
    name: 'news',
    icon: 'notification_important',
  },
  // {
  //   title: 'Reminder',
  //   name: 'reminder',
  //   icon: 'alarm_add',
  // },
  {
    title: 'Time Table',
    name: 'timeTable',
    icon: 'event_note',
  },
  {
    title: 'Notification',
    name: 'notification',
    icon: 'notifications_active',
  },
];


// reorder menu
Menu.forEach((item) => {
  if (item.items) {
    item.items.sort((x, y) => {
      let textA = x.title.toUpperCase();
      let textB = y.title.toUpperCase();
      return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
    });
  }
});

export default Menu;