ref: Creating popups with hook, fix translation keys passing

This commit is contained in:
Maksim Eltyshev
2023-01-24 18:53:13 +01:00
parent 0f50dbde92
commit 8a46a2e0b9
69 changed files with 309 additions and 332 deletions

View File

@@ -47,11 +47,9 @@ const EditStep = React.memo(({ defaultData, onUpdate, onDelete, onBack }) => {
if (step && step.type === StepTypes.DELETE) {
return (
<DeleteStep
title={t('common.deleteLabel', {
context: 'title',
})}
content={t('common.areYouSureYouWantToDeleteThisLabel')}
buttonContent={t('action.deleteLabel')}
title="common.deleteLabel"
content="common.areYouSureYouWantToDeleteThisLabel"
buttonContent="action.deleteLabel"
onConfirm={onDelete}
onBack={handleBack}
/>