From 3c074045bac4ec7fe054a6ce79aa3ca9b07c1721 Mon Sep 17 00:00:00 2001 From: Agnieszka Jarosik Date: Fri, 27 Jan 2023 14:48:10 +0100 Subject: [PATCH] changed button text --- .../CancelIncorporationDialog.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/modules/dashboard/components/Dialogs/CancelIncorporationDialog/CancelIncorporationDialog.tsx b/src/modules/dashboard/components/Dialogs/CancelIncorporationDialog/CancelIncorporationDialog.tsx index c7d7eddf0f..35ea4834b8 100644 --- a/src/modules/dashboard/components/Dialogs/CancelIncorporationDialog/CancelIncorporationDialog.tsx +++ b/src/modules/dashboard/components/Dialogs/CancelIncorporationDialog/CancelIncorporationDialog.tsx @@ -53,9 +53,9 @@ const MSG = defineMessages({ id: `dashboard.CancelExpenditureDialog.CancelIncorporationDialog.mercyMessage`, defaultMessage: 'Owner will keep their stake and reputation.', }, - submit: { - id: 'dashboard.CancelExpenditureDialog.CancelIncorporationDialog.submit', - defaultMessage: 'Submit', + createMotion: { + id: `dashboard.CancelExpenditureDialog.CancelIncorporationDialog.createMotion`, + defaultMessage: 'Create Motion', }, textareaLabel: { id: `dashboard.CancelExpenditureDialog.CancelIncorporationDialog.textareaLabel`, @@ -65,9 +65,9 @@ const MSG = defineMessages({ id: `dashboard.CancelExpenditureDialog.CancelIncorporationDialog.effectTooltip`, defaultMessage: `Decide what to do with the owner's stake when cancelling this incorporation.`, }, - createDomain: { - id: `dashboard.CancelExpenditureDialog.CancelIncorporationDialog.createDomain`, - defaultMessage: 'Motion will be created in', + continue: { + id: `dashboard.CancelExpenditureDialog.CancelIncorporationDialog.continue`, + defaultMessage: 'Continue', }, }); @@ -269,7 +269,11 @@ const CancelIncorporationDialog = ({ width: styles.buttonWidth, }} autoFocus - text={{ id: 'button.submit' }} + text={ + formValues.values.forceAction + ? MSG.continue + : MSG.createMotion + } type="submit" onClick={() => { onCancelIncorporation(formValues.values.forceAction);