Skip to content

The open alternative to Salesforce, designed for AI.

remove lingui no single variables to translate #2 (#10342)

Weiko4a2a312efd04
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/workflow-run-record-actions/hooks/useWorkflowRunRecordActions.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/workflow-run-record-actions/hooks/useWorkflowRunRecordActions.tsx
index d5b468f9e10..74c3365abc7 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/workflow-run-record-actions/hooks/useWorkflowRunRecordActions.tsx
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/workflow-run-record-actions/hooks/useWorkflowRunRecordActions.tsx
@@ -62,7 +62,7 @@ export const useWorkflowRunRecordActions = ({
type: ActionMenuEntryType.WorkflowRun,
key: `workflow-run-${activeWorkflowVersion.id}`,
scope: ActionMenuEntryScope.RecordSelection,
- label: msg`${name}`, // eslint-disable-line lingui/no-single-variables-to-translate
+ label: msg`${name}`,
position: index,
Icon: IconSettingsAutomation,
onClick: async () => {
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/run-workflow-actions/hooks/useRunWorkflowActions.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/run-workflow-actions/hooks/useRunWorkflowActions.tsx
index 30f85c765db..ed58fe7b739 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/run-workflow-actions/hooks/useRunWorkflowActions.tsx
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/run-workflow-actions/hooks/useRunWorkflowActions.tsx
@@ -37,7 +37,7 @@ export const useRunWorkflowActions = () => {
type: ActionMenuEntryType.WorkflowRun,
key: `workflow-run-${activeWorkflowVersion.id}`,
scope: ActionMenuEntryScope.Global,
- label: msg`${name}`, // eslint-disable-line lingui/no-single-variables-to-translate
+ label: msg`${name}`,
position: index,
Icon: IconSettingsAutomation,
useAction: () => {
diff --git a/packages/twenty-front/src/pages/settings/roles/components/RolePermissions.tsx b/packages/twenty-front/src/pages/settings/roles/components/RolePermissions.tsx
index 9e2aaa3ef6d..25b70f2c576 100644
--- a/packages/twenty-front/src/pages/settings/roles/components/RolePermissions.tsx
+++ b/packages/twenty-front/src/pages/settings/roles/components/RolePermissions.tsx
@@ -8,11 +8,7 @@ import {
IconTrashX,
Section,
} from 'twenty-ui';
-import {
- Role,
- SettingsFeatures,
- WorkspaceMember,
-} from '~/generated-metadata/graphql';
+import { Role, SettingsFeatures } from '~/generated-metadata/graphql';
import { RolePermissionsObjectsTableHeader } from '~/pages/settings/roles/components/RolePermissionsObjectsTableHeader';
import { RolePermissionsSettingsTableHeader } from '~/pages/settings/roles/components/RolePermissionsSettingsTableHeader';
import { RolePermissionsSettingsTableRow } from '~/pages/settings/roles/components/RolePermissionsSettingsTableRow';
@@ -26,9 +22,7 @@ const StyledRolePermissionsContainer = styled.div`
`;
type RolePermissionsProps = {
- role: Pick<Role, 'id' | 'label' | 'canUpdateAllSettings'> & {
- workspaceMembers: Array<WorkspaceMember>;
- };
+ role: Pick<Role, 'id' | 'canUpdateAllSettings'>;
};
export const RolePermissions = ({ role }: RolePermissionsProps) => {