From 3ea66819f40dec3bd940e65d7684bb40ccb9080d Mon Sep 17 00:00:00 2001 From: kunal yadav <168568608+kunal-595@users.noreply.github.com> Date: Thu, 12 Feb 2026 03:27:42 +0530 Subject: [PATCH] show correct toast when copying transaction ID in fidelity bond dialogs (#1047) fix: correct toast message when copying transaction ID --- .../CreateFidelityBondDialogSteps.tsx | 4 +++- src/components/earn/MoveToJarDialog.tsx | 4 +++- src/components/earn/RenewBondDialog.tsx | 4 +++- src/i18n/locales/de/translation.json | 1 + src/i18n/locales/en/translation.json | 1 + src/i18n/locales/it/translation.json | 1 + src/i18n/locales/pt_BR/translation.json | 1 + src/i18n/locales/ru/translation.json | 1 + src/i18n/locales/zh_Hans/translation.json | 1 + src/i18n/locales/zh_Hant/translation.json | 1 + 10 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/components/earn/CreateFidelityBondDialog/CreateFidelityBondDialogSteps.tsx b/src/components/earn/CreateFidelityBondDialog/CreateFidelityBondDialogSteps.tsx index 320f5d4e..3f359407 100644 --- a/src/components/earn/CreateFidelityBondDialog/CreateFidelityBondDialogSteps.tsx +++ b/src/components/earn/CreateFidelityBondDialog/CreateFidelityBondDialogSteps.tsx @@ -545,7 +545,9 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial text={} successText={} className={cn(buttonVariants({ variant: 'outline', size: 'icon' }), 'h-10 w-10 shrink-0')} - onSuccess={() => toast.success(t('receive.text_copy_address'))} + onSuccess={() => + toast.success(t('earn.fidelity_bond.create_fidelity_bond.text_copy_transaction_id')) + } onError={() => toast.error(t('global.errors.reason_unknown'))} /> diff --git a/src/components/earn/MoveToJarDialog.tsx b/src/components/earn/MoveToJarDialog.tsx index 86d544a1..27b808b4 100644 --- a/src/components/earn/MoveToJarDialog.tsx +++ b/src/components/earn/MoveToJarDialog.tsx @@ -357,7 +357,9 @@ export function MoveToJarDialog({ open, onOpenChange, walletFileName, utxo }: Mo text={} successText={} className={cn(buttonVariants({ variant: 'outline', size: 'icon' }), 'h-10 w-10 shrink-0')} - onSuccess={() => toast.success(t('receive.text_copy_address'))} + onSuccess={() => + toast.success(t('earn.fidelity_bond.create_fidelity_bond.text_copy_transaction_id')) + } onError={() => toast.error(t('global.errors.reason_unknown'))} /> diff --git a/src/components/earn/RenewBondDialog.tsx b/src/components/earn/RenewBondDialog.tsx index 8936a003..dbf8c8a7 100644 --- a/src/components/earn/RenewBondDialog.tsx +++ b/src/components/earn/RenewBondDialog.tsx @@ -437,7 +437,9 @@ export function RenewBondDialog({ open, onOpenChange, walletFileName, utxo }: Re text={} successText={} className={cn(buttonVariants({ variant: 'outline', size: 'icon' }), 'h-10 w-10 shrink-0')} - onSuccess={() => toast.success(t('receive.text_copy_address'))} + onSuccess={() => + toast.success(t('earn.fidelity_bond.create_fidelity_bond.text_copy_transaction_id')) + } onError={() => toast.error(t('global.errors.reason_unknown'))} /> diff --git a/src/i18n/locales/de/translation.json b/src/i18n/locales/de/translation.json index 661566a2..85479444 100644 --- a/src/i18n/locales/de/translation.json +++ b/src/i18n/locales/de/translation.json @@ -473,6 +473,7 @@ "text_secondary_button": "Erledigt", "label_lock_date": "Gesperrt bis", "label_address": "Zeitlich gesperrte Adresse", + "text_copy_transaction_id": "Transaktions-ID kopiert", "label_utxos_to_unfreeze": "Willst du die vorher eingefrorenen UTXOs wieder auftauen? " }, "unfreeze_utxos": { diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json index a2cbf58f..095fb387 100644 --- a/src/i18n/locales/en/translation.json +++ b/src/i18n/locales/en/translation.json @@ -582,6 +582,7 @@ "label_lock_date": "Locked until", "label_address": "Time-locked address", "label_transaction_id": "Transaction ID", + "text_copy_transaction_id": "Transaction ID copied", "label_utxos_to_unfreeze": "Do you want to unfreeze the UTXOs that were frozen earlier?" }, "unfreeze_utxos": { diff --git a/src/i18n/locales/it/translation.json b/src/i18n/locales/it/translation.json index e0ec6e56..6ba4456a 100644 --- a/src/i18n/locales/it/translation.json +++ b/src/i18n/locales/it/translation.json @@ -424,6 +424,7 @@ "text_secondary_button": "Fatto", "label_lock_date": "Bloccato fino al", "label_address": "Indirizzo bloccato temporalmente", + "text_copy_transaction_id": "ID transazione copiato", "label_utxos_to_unfreeze": "Vuoi scongelare gli UTXO che erano stati congelati precedentemente?" }, "unfreeze_utxos": { diff --git a/src/i18n/locales/pt_BR/translation.json b/src/i18n/locales/pt_BR/translation.json index 062c8bf5..6700afef 100644 --- a/src/i18n/locales/pt_BR/translation.json +++ b/src/i18n/locales/pt_BR/translation.json @@ -424,6 +424,7 @@ "text_secondary_button": "Pronto", "label_lock_date": "Trancado até", "label_address": "Endereços trancados no tempo", + "text_copy_transaction_id": "ID da transação copiado", "label_utxos_to_unfreeze": "Deseja descongelar os UTXOs que foram congelados anteriormente?" }, "unfreeze_utxos": { diff --git a/src/i18n/locales/ru/translation.json b/src/i18n/locales/ru/translation.json index d7962e18..f931fda3 100644 --- a/src/i18n/locales/ru/translation.json +++ b/src/i18n/locales/ru/translation.json @@ -522,6 +522,7 @@ "text_secondary_button": "Завершить", "label_lock_date": "Заблокировано до", "label_address": "Адрес с ограничением по времени", + "text_copy_transaction_id": "ID транзакции скопирован", "label_utxos_to_unfreeze": "Хотите ли вы разморозить UTXO, которые были заморожены ранее?" }, "unfreeze_utxos": { diff --git a/src/i18n/locales/zh_Hans/translation.json b/src/i18n/locales/zh_Hans/translation.json index 8d71df71..35ca70b3 100644 --- a/src/i18n/locales/zh_Hans/translation.json +++ b/src/i18n/locales/zh_Hans/translation.json @@ -473,6 +473,7 @@ "text_secondary_button": "完成", "label_lock_date": "锁定至", "label_address": "时间锁地址", + "text_copy_transaction_id": "交易 ID 已复制", "label_utxos_to_unfreeze": "你是否想要解冻之前冻结的 UTXOs?" }, "unfreeze_utxos": { diff --git a/src/i18n/locales/zh_Hant/translation.json b/src/i18n/locales/zh_Hant/translation.json index 935d21e5..123cb64a 100644 --- a/src/i18n/locales/zh_Hant/translation.json +++ b/src/i18n/locales/zh_Hant/translation.json @@ -473,6 +473,7 @@ "text_secondary_button": "完成", "label_lock_date": "鎖定至", "label_address": "時間鎖地址", + "text_copy_transaction_id": "交易 ID 已複製", "label_utxos_to_unfreeze": "你是否想要解凍之前凍結的 UTXOs?" }, "unfreeze_utxos": {