fleet/frontend/pages/ManageControlsPage/MacOSSettings/MacOSSettingsNavItems.tsx
Gabriel Hernandez e822132590
Feat/disk encryption page (#10288)
related to #9402 and #9404

Implements UI for toggling off and on fleet mdm disk encryption
management and also the disk encryption aggregate data tables.

**Toggling disk encryption:**


![image](https://user-images.githubusercontent.com/1153709/222773636-2943521b-6e88-4154-980b-92e1122aebfc.png)

**disk encryption aggregate:**


![image](https://user-images.githubusercontent.com/1153709/222773592-0781fe1b-7808-4e50-b7de-03c6817c612f.png)

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
- [x] Manual QA for all new/changed functionality
2023-03-14 13:03:02 -07:00

33 lines
848 B
TypeScript

import PATHS from "router/paths";
import { ISideNavItem } from "pages/admin/components/SideNav/SideNav";
import { IMdmProfile } from "interfaces/mdm";
import DiskEncryption from "./cards/DiskEncryption";
import CustomSettings from "./cards/CustomSettings";
interface IMacOSSettingsCardProps {
currentTeamId?: number;
profiles?: IMdmProfile[];
onProfileUpload?: () => void;
onProfileDelete?: () => void;
}
// TODO: types
const MAC_OS_SETTINGS_NAV_ITEMS: ISideNavItem<
IMacOSSettingsCardProps | any
>[] = [
{
title: "Disk encryption",
urlSection: "disk-encryption",
path: PATHS.CONTROLS_DISK_ENCRYPTION,
Card: DiskEncryption,
},
{
title: "Custom settings",
urlSection: "custom-settings",
path: PATHS.CONTROLS_CUSTOM_SETTINGS,
Card: CustomSettings,
},
];
export default MAC_OS_SETTINGS_NAV_ITEMS;