diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/multiple-records/hooks/useDeleteMultipleRecordsAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/multiple-records/hooks/useDeleteMultipleRecordsAction.tsx index 42eea54f5..f16d3c98c 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/multiple-records/hooks/useDeleteMultipleRecordsAction.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/multiple-records/hooks/useDeleteMultipleRecordsAction.tsx @@ -18,7 +18,6 @@ import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModa import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2'; import { t } from '@lingui/core/macro'; import { useCallback, useState } from 'react'; -import { getOsControlSymbol } from 'twenty-ui'; import { isDefined } from 'twenty-shared/utils'; export const useDeleteMultipleRecordsAction: ActionHookWithObjectMetadataItem = @@ -110,14 +109,12 @@ export const useDeleteMultipleRecordsAction: ActionHookWithObjectMetadataItem = setIsDeleteRecordsModalOpen(true); }; - const osControlSymbol = getOsControlSymbol(); - const confirmationModal = ( diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/hooks/useDeleteSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/hooks/useDeleteSingleRecordAction.tsx index 5a8b4cbd4..8caa9f4fa 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/hooks/useDeleteSingleRecordAction.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/hooks/useDeleteSingleRecordAction.tsx @@ -11,7 +11,6 @@ import { t } from '@lingui/core/macro'; import { isNull } from '@sniptt/guards'; import { useCallback, useState } from 'react'; import { useRecoilValue } from 'recoil'; -import { getOsControlSymbol } from 'twenty-ui'; import { isDefined } from 'twenty-shared/utils'; export const useDeleteSingleRecordAction: ActionHookWithObjectMetadataItem = ({ @@ -72,8 +71,6 @@ export const useDeleteSingleRecordAction: ActionHookWithObjectMetadataItem = ({ setIsDeleteRecordsModalOpen(true); }; - const osControlSymbol = getOsControlSymbol(); - return { shouldBeRegistered, onClick, @@ -82,7 +79,7 @@ export const useDeleteSingleRecordAction: ActionHookWithObjectMetadataItem = ({ isOpen={isDeleteRecordsModalOpen} setIsOpen={setIsDeleteRecordsModalOpen} title={'Delete Record'} - subtitle={t`Are you sure you want to delete this record? It can be recovered from the Command menu (${osControlSymbol} + K).`} + subtitle={t`Are you sure you want to delete this record? It can be recovered from the Command menu.`} onConfirmClick={() => { handleDeleteClick(); }}