From 4a2a312efd04d7409015679ea8c2e000345aa9cf Mon Sep 17 00:00:00 2001 From: Weiko Date: Wed, 19 Feb 2025 18:34:35 +0100 Subject: [PATCH] remove lingui no single variables to translate #2 (#10342) --- .../hooks/useWorkflowRunRecordActions.tsx | 2 +- .../hooks/useRunWorkflowActions.tsx | 2 +- .../settings/roles/components/RolePermissions.tsx | 10 ++-------- 3 files changed, 4 insertions(+), 10 deletions(-) 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 d5b468f9e..74c3365ab 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 30f85c765..ed58fe7b7 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 9e2aaa3ef..25b70f2c5 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 & { - workspaceMembers: Array; - }; + role: Pick; }; export const RolePermissions = ({ role }: RolePermissionsProps) => {