From e203f9ca4ac95d7eb8b59ef20569c9f9aa8296d5 Mon Sep 17 00:00:00 2001 From: michael1011 Date: Thu, 3 Oct 2024 16:42:50 +0200 Subject: [PATCH] feat: show swap ID after uploading file (#677) * feat: show swap ID after uploading file * chore: add missing strings --------- Co-authored-by: Kilian <19181985+kilrau@users.noreply.github.com> --- src/i18n/i18n.ts | 4 ++++ src/pages/Refund.tsx | 21 ++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts index 94aaea0c..c2bf8fa5 100644 --- a/src/i18n/i18n.ts +++ b/src/i18n/i18n.ts @@ -97,6 +97,7 @@ const dict = { backup_refund_skip: "If any of the above applies to you, we strongly recommend downloading this refund file!", refund_a_swap: "Refund a swap", + refund_swap: "Refund Swap {{ id }}", refund_a_swap_subline: "Upload your refund file and reclaim your locked funds", refund_past_swaps: "Past swaps", @@ -312,6 +313,7 @@ const dict = { backup_refund_skip: "Falls einer dieser Punkte zutrifft, empfehlen wir ausdrücklich die Rückerstattungsdatei herunterzuladen!", refund_a_swap: "Einen Swap erstatten", + refund_swap: "Erstatte Swap {{ id }}", refund_a_swap_subline: "Lade deine Rückerstattungsdatei hoch und hole dir deine Bitcoin aus einem fehlgeschlagenen Swap zurück", refund_past_swaps: "Historische Swaps", @@ -532,6 +534,7 @@ const dict = { backup_refund_skip: "Si alguno de los puntos anteriores le afecta, le recomendamos que descargue el archivo de reembolso.", refund_a_swap: "Reembolsar un intercambio", + refund_swap: "Reembolsar intercambio {{ id }}", refund_a_swap_subline: "Cargue su archivo de reembolso y recupere sus fondos bloqueados", refund_past_swaps: "Intercambios anteriores", @@ -749,6 +752,7 @@ const dict = { backup_refund_list_clear_history: "清除您的浏览历史记录", backup_refund_skip: "如果您符合以上任何条件,强烈建议下载此退款文件!", refund_a_swap: "退还交换", + refund_swap: "退交换{{ id }}", refund_a_swap_subline: "上传您的退款文件,取回被锁定的资金", refund_past_swaps: "过去的交换", refund_past_swaps_subline: "保存在浏览器存储中的交换", diff --git a/src/pages/Refund.tsx b/src/pages/Refund.tsx index d7aafffa..821f143c 100644 --- a/src/pages/Refund.tsx +++ b/src/pages/Refund.tsx @@ -10,6 +10,7 @@ import SwapList from "../components/SwapList"; import SwapListLogs from "../components/SwapListLogs"; import SettingsCog from "../components/settings/SettingsCog"; import SettingsMenu from "../components/settings/SettingsMenu"; +import { RBTC } from "../consts/Assets"; import { SwapType } from "../consts/Enums"; import { swapStatusFailed, swapStatusSuccess } from "../consts/SwapStatus"; import { useGlobalContext } from "../context/Global"; @@ -198,8 +199,17 @@ const Refund = () => {
-

{t("refund_a_swap")}

-

{t("refund_a_swap_subline")}

+ +

{t("refund_a_swap")}

+

{t("refund_a_swap_subline")}

+ + }> +

{t("refund_swap", { id: refundJson().id })}

+
+ 0}> @@ -214,7 +224,12 @@ const Refund = () => { accept="application/json,image/png" onChange={(e) => uploadChange(e)} /> - 0}> + 0 && + (refundJson() === null || + refundJson().assetSend === RBTC) + }>