diff --git a/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/TopToolbar/DeleteWrapper.test.tsx b/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/TopToolbar/DeleteWrapper.test.tsx index 37efb4b75e6..b7ab0f52612 100644 --- a/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/TopToolbar/DeleteWrapper.test.tsx +++ b/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/TopToolbar/DeleteWrapper.test.tsx @@ -22,9 +22,7 @@ const user = userEvent.setup(); const deleteText = textMock('schema_editor.delete_data_model'); const continueText = textMock('schema_editor.confirm_deletion'); const cancelText = textMock('general.cancel'); -const confirmText = textMock('schema_editor.delete_model_confirm', { - schemaName: dataModel1NameMock, -}); +const confirmText = textMock('schema_editor.delete_model_confirm'); const selectedOption = convertMetadataToOption(jsonMetadata1Mock); const defaultProps: DeleteWrapperProps = { selectedOption }; diff --git a/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/TopToolbar/DeleteWrapper.tsx b/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/TopToolbar/DeleteWrapper.tsx index c1e9f48d254..3329951cf59 100644 --- a/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/TopToolbar/DeleteWrapper.tsx +++ b/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/TopToolbar/DeleteWrapper.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { useTranslation } from 'react-i18next'; +import { Trans, useTranslation } from 'react-i18next'; import { StudioButton } from '@studio/components'; import { TrashIcon } from '@studio/icons'; import { useDeleteDataModelMutation } from '../../../../hooks/mutations'; @@ -46,7 +46,13 @@ export function DeleteWrapper({ selectedOption }: DeleteWrapperProps) { } > -
{t('schema_editor.delete_model_confirm', { schemaName })}
+
+