fleet/frontend/pages/ManageControlsPage/OSSettings/OSSettingsNavItems.tsx
Gabriel Hernandez fa252e4977
Update controls tabs to show mdm disabled UI state per tab (#13794)
relates to #9831

Update Controls page to individually show the mdm disabled UI state per
tab. Before this was done across the entire control page:


![image](https://github.com/fleetdm/fleet/assets/1153709/67a88cf4-c489-46aa-a802-58c4ef61ac5a)


Also, refactors the code to be less specific to mac OS.


- [x] Manual QA for all new/changed functionality
2023-09-11 12:52:24 +01:00

31 lines
830 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 IOSSettingsCardProps {
currentTeamId?: number;
profiles?: IMdmProfile[];
onProfileUpload?: () => void;
onProfileDelete?: () => void;
}
// TODO: types
const OS_SETTINGS_NAV_ITEMS: ISideNavItem<IOSSettingsCardProps | 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 OS_SETTINGS_NAV_ITEMS;