@@ -4,32 +4,34 @@ import { ISideNavItem } from "../components/SideNav/SideNav";
4
4
import Integrations from "./cards/Integrations" ;
5
5
import Mdm from "./cards/MdmSettings/MdmSettings" ;
6
6
import AutomaticEnrollment from "./cards/AutomaticEnrollment/AutomaticEnrollment" ;
7
+ import Calendars from "./cards/Calendars/Calendars" ;
7
8
8
- const getFilteredIntegrationSettingsNavItems = (
9
- isSandboxMode = false
10
- ) : ISideNavItem < any > [ ] => {
11
- return [
12
- // TODO: types
13
- {
14
- title : "Ticket destinations" ,
15
- urlSection : "ticket-destinations" ,
16
- path : PATHS . ADMIN_INTEGRATIONS_TICKET_DESTINATIONS ,
17
- Card : Integrations ,
18
- } ,
19
- {
20
- title : "Mobile device management (MDM)" ,
21
- urlSection : "mdm" ,
22
- path : PATHS . ADMIN_INTEGRATIONS_MDM ,
23
- Card : Mdm ,
24
- exclude : isSandboxMode ,
25
- } ,
26
- {
27
- title : "Automatic enrollment" ,
28
- urlSection : "automatic-enrollment" ,
29
- path : PATHS . ADMIN_INTEGRATIONS_AUTOMATIC_ENROLLMENT ,
30
- Card : AutomaticEnrollment ,
31
- } ,
32
- ] . filter ( ( navItem ) => ! navItem . exclude ) ;
33
- } ;
9
+ const integrationSettingsNavItems : ISideNavItem < any > [ ] = [
10
+ // TODO: types
11
+ {
12
+ title : "Ticket destinations" ,
13
+ urlSection : "ticket-destinations" ,
14
+ path : PATHS . ADMIN_INTEGRATIONS_TICKET_DESTINATIONS ,
15
+ Card : Integrations ,
16
+ } ,
17
+ {
18
+ title : "Mobile device management (MDM)" ,
19
+ urlSection : "mdm" ,
20
+ path : PATHS . ADMIN_INTEGRATIONS_MDM ,
21
+ Card : Mdm ,
22
+ } ,
23
+ {
24
+ title : "Automatic enrollment" ,
25
+ urlSection : "automatic-enrollment" ,
26
+ path : PATHS . ADMIN_INTEGRATIONS_AUTOMATIC_ENROLLMENT ,
27
+ Card : AutomaticEnrollment ,
28
+ } ,
29
+ {
30
+ title : "Calendars" ,
31
+ urlSection : "calendars" ,
32
+ path : PATHS . ADMIN_INTEGRATIONS_CALENDARS ,
33
+ Card : Calendars ,
34
+ } ,
35
+ ] ;
34
36
35
- export default getFilteredIntegrationSettingsNavItems ;
37
+ export default integrationSettingsNavItems ;
0 commit comments