Skip to content

Commit d27cd88

Browse files
committed
Remove function from no longer function
1 parent 8f63492 commit d27cd88

File tree

2 files changed

+30
-32
lines changed

2 files changed

+30
-32
lines changed

frontend/pages/admin/IntegrationsPage/IntegrationNavItems.tsx

+28-30
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,32 @@ import Mdm from "./cards/MdmSettings/MdmSettings";
66
import AutomaticEnrollment from "./cards/AutomaticEnrollment/AutomaticEnrollment";
77
import Calendars from "./cards/Calendars/Calendars";
88

9-
const getFilteredIntegrationSettingsNavItems = (): ISideNavItem<any>[] => {
10-
return [
11-
// TODO: types
12-
{
13-
title: "Ticket destinations",
14-
urlSection: "ticket-destinations",
15-
path: PATHS.ADMIN_INTEGRATIONS_TICKET_DESTINATIONS,
16-
Card: Integrations,
17-
},
18-
{
19-
title: "Mobile device management (MDM)",
20-
urlSection: "mdm",
21-
path: PATHS.ADMIN_INTEGRATIONS_MDM,
22-
Card: Mdm,
23-
},
24-
{
25-
title: "Automatic enrollment",
26-
urlSection: "automatic-enrollment",
27-
path: PATHS.ADMIN_INTEGRATIONS_AUTOMATIC_ENROLLMENT,
28-
Card: AutomaticEnrollment,
29-
},
30-
{
31-
title: "Calendars",
32-
urlSection: "calendars",
33-
path: PATHS.ADMIN_INTEGRATIONS_CALENDARS,
34-
Card: Calendars,
35-
},
36-
];
37-
};
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+
];
3836

39-
export default getFilteredIntegrationSettingsNavItems;
37+
export default integrationSettingsNavItems;

frontend/pages/admin/IntegrationsPage/IntegrationsPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import { InjectedRouter, Params } from "react-router/lib/Router";
33

44
import SideNav from "../components/SideNav";
5-
import getFilteredIntegrationSettingsNavItems from "./IntegrationNavItems";
5+
import integrationSettingsNavItems from "./IntegrationNavItems";
66

77
const baseClass = "integrations";
88

@@ -16,7 +16,7 @@ const IntegrationsPage = ({
1616
params,
1717
}: IIntegrationSettingsPageProps) => {
1818
const { section } = params;
19-
const navItems = getFilteredIntegrationSettingsNavItems();
19+
const navItems = integrationSettingsNavItems;
2020
const DEFAULT_SETTINGS_SECTION = navItems[0];
2121
const currentSection =
2222
navItems.find((item) => item.urlSection === section) ??

0 commit comments

Comments
 (0)