Blame view

src/api/menu.js 507 Bytes
93a68cfa1   Jatinder Singh   first commit
1
2
  const Menu =  [
  //  { header: 'Apps' },
93a68cfa1   Jatinder Singh   first commit
3
    {
e3e2a04c6   Neeraj Sharma   first commit
4
      title: 'Teachers',
93a68cfa1   Jatinder Singh   first commit
5
      // group: '',
1c1942362   Neeraj Sharma   commit code Schoo...
6
      name: 'teachers',
e3e2a04c6   Neeraj Sharma   first commit
7
      icon: 'group',
93a68cfa1   Jatinder Singh   first commit
8
9
10
    },
  
    {
e3e2a04c6   Neeraj Sharma   first commit
11
      title: 'Students',
93a68cfa1   Jatinder Singh   first commit
12
      // group: 'apps',
e3e2a04c6   Neeraj Sharma   first commit
13
14
      name: 'Students',
      icon: 'school',
04e3fbc56   Jatinder Singh   minor fix
15
    },
1c1942362   Neeraj Sharma   commit code Schoo...
16
  ];
93a68cfa1   Jatinder Singh   first commit
17

93a68cfa1   Jatinder Singh   first commit
18

93a68cfa1   Jatinder Singh   first commit
19
20
21
22
23
24
25
26
27
28
29
30
  // 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;