Files
twenty_crm/packages/twenty-front/src/pages/settings/roles/components/RoleAssignment.tsx
Weiko e849378726 Add role edit page container (#10037)
## Context

This PR adds a new SettingsRoleEdit page, the existing roles page now
redirects to the role edition page when clicking on it.
For now, we can't edit anything. Next step is to allow role assignment
in the corresponding tab.

<img width="941" alt="Screenshot 2025-02-05 at 17 16 14"
src="https://github.com/user-attachments/assets/ca46de15-6237-4de6-88e1-2384a09d4a27"
/>
2025-02-06 11:27:56 +01:00

20 lines
541 B
TypeScript

import { t } from '@lingui/core/macro';
import { H2Title, Section } from 'twenty-ui';
import { Role } from '~/generated-metadata/graphql';
type RoleAssignmentProps = {
role: Pick<Role, 'id' | 'label' | 'canUpdateAllSettings'>;
};
// eslint-disable-next-line unused-imports/no-unused-vars
export const RoleAssignment = ({ role }: RoleAssignmentProps) => {
return (
<Section>
<H2Title
title={t`Assigned members`}
description={t`This Role is assigned to these workspace member.`}
/>
</Section>
);
};