diff --git a/frontend/src/component/admin/users/UsersAdmin.tsx b/frontend/src/component/admin/users/UsersAdmin.tsx index a049366ab82d..c93c04bd46ba 100644 --- a/frontend/src/component/admin/users/UsersAdmin.tsx +++ b/frontend/src/component/admin/users/UsersAdmin.tsx @@ -7,27 +7,47 @@ import EditUser from './EditUser/EditUser'; import NotFound from 'component/common/NotFound/NotFound'; import { InactiveUsersList } from './InactiveUsersList/InactiveUsersList'; import { AccessMatrix } from './AccessMatrix/AccessMatrix'; +import { PremiumFeature } from '../../common/PremiumFeature/PremiumFeature'; +import { ConditionallyRender } from '../../common/ConditionallyRender/ConditionallyRender'; +import useUiConfig from '../../../hooks/api/getters/useUiConfig/useUiConfig'; -export const UsersAdmin = () => ( -
- - - - - - - } - /> - } /> - } /> - } /> - } /> - - -
-); +export const UsersAdmin = () => { + const { isEnterprise } = useUiConfig(); + return ( +
+ + + + + + + } + /> + } /> + } /> + } + elseShow={ + + } + /> + } + /> + } /> + + +
+ ); +}; export default UsersAdmin; diff --git a/frontend/src/component/admin/users/UsersList/UsersList.tsx b/frontend/src/component/admin/users/UsersList/UsersList.tsx index add4a51a75a4..63fe7d996def 100644 --- a/frontend/src/component/admin/users/UsersList/UsersList.tsx +++ b/frontend/src/component/admin/users/UsersList/UsersList.tsx @@ -36,9 +36,11 @@ import { useSearch } from 'hooks/useSearch'; import { Download } from '@mui/icons-material'; import { StyledUsersLinkDiv } from '../Users.styles'; import { useUiFlag } from 'hooks/useUiFlag'; +import useUiConfig from '../../../../hooks/api/getters/useUiConfig/useUiConfig'; const UsersList = () => { const navigate = useNavigate(); + const { isEnterprise } = useUiConfig(); const { users, roles, refetch, loading } = useUsers(); const { setToastData, setToastApiError } = useToast(); const { removeUser, userLoading, userApiErrors } = useAdminUsersApi(); @@ -315,9 +317,16 @@ const UsersList = () => { } > - - View inactive users - + + + View inactive users + + + } + />