fleet/frontend/pages/ManageControlsPage/SetupExperience/SetupExperienceNavItems.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
786 B
TypeScript

import PATHS from "router/paths";
import { ISideNavItem } from "pages/admin/components/SideNav/SideNav";
import EndUserAuthentication from "./cards/EndUserAuthentication/EndUserAuthentication";
import BootstrapPackage from "./cards/BootstrapPackage";
interface ISetupExperienceCardProps {
currentTeamId?: number;
}
// TODO: types
const SETUP_EXPERIENCE_NAV_ITEMS: ISideNavItem<
ISetupExperienceCardProps | any
>[] = [
{
title: "End user authentication",
urlSection: "end-user-auth",
path: PATHS.CONTROLS_END_USER_AUTHENTICATION,
Card: EndUserAuthentication,
},
{
title: "Bootstrap package",
urlSection: "bootstrap-package",
path: PATHS.CONTROLS_BOOTSTRAP_PACKAGE,
Card: BootstrapPackage,
},
];
export default SETUP_EXPERIENCE_NAV_ITEMS;