mirror of
https://github.com/fleetdm/fleet
synced 2026-04-30 01:47:23 +00:00
## Addresses #9371 ### Adds a suite of UI logic for premium features in the Sandbox environment For reviewer: please review the work for the below 3 substasks, which are the only remaining subtasks encompassed by this PR that have not yet passed review individually: - #10822 (9) - #10823 (10) - #10824 (11) ## Checklist for submitter - [x] Changes file added for user-visible changes in `changes/` - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com> Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
35 lines
1 KiB
TypeScript
35 lines
1 KiB
TypeScript
import React from "react";
|
|
import { InjectedRouter } from "react-router";
|
|
import SandboxGate from "components/Sandbox/SandboxGate";
|
|
import SandboxMessage from "components/Sandbox/SandboxMessage";
|
|
import UsersTable from "./components/UsersTable";
|
|
|
|
const baseClass = "user-management";
|
|
|
|
interface IUserManagementProps {
|
|
router: InjectedRouter; // v3
|
|
}
|
|
|
|
const UserManagementPage = ({ router }: IUserManagementProps): JSX.Element => {
|
|
return (
|
|
<div className={`${baseClass}`}>
|
|
<p className={`${baseClass}__page-description`}>
|
|
Create new users, customize user permissions, and remove users from
|
|
Fleet.
|
|
</p>
|
|
<SandboxGate
|
|
fallbackComponent={() => (
|
|
<SandboxMessage
|
|
message="User management is only available in self-managed Fleet"
|
|
utmSource="fleet-ui-users-page"
|
|
className={`${baseClass}__sandbox-message`}
|
|
/>
|
|
)}
|
|
>
|
|
<UsersTable router={router} />
|
|
</SandboxGate>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default UserManagementPage;
|