diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts index fe0a36e9e..ce919895a 100644 --- a/src/i18n/i18n.ts +++ b/src/i18n/i18n.ts @@ -160,6 +160,7 @@ const dict = { scan_qr_code: "Scan QR Code", version: "Version", commithash: "Commit Hash", + open_in_wallet: "Open in Wallet", }, de: { language: "Deutsch", @@ -329,6 +330,7 @@ const dict = { scan_qr_code: "QR Code scannen", version: "Version", commithash: "Commit Hash", + open_in_wallet: "Im Wallet öffnen", }, es: { language: "Español", @@ -497,6 +499,7 @@ const dict = { scan_qr_code: "Escanear código QR", version: "Versión", commithash: "Commit Hash", + open_in_wallet: "Abrir en monedero", }, zh: { language: "中文", @@ -651,6 +654,7 @@ const dict = { scan_qr_code: "扫描 QR 码", version: "版本", commithash: "提交哈希", + open_in_wallet: "在钱包中打开", }, }; diff --git a/src/status/InvoiceSet.tsx b/src/status/InvoiceSet.tsx index e4c1d1c9c..f3eda14b6 100644 --- a/src/status/InvoiceSet.tsx +++ b/src/status/InvoiceSet.tsx @@ -64,7 +64,9 @@ const InvoiceSet = () => { })}
- + + +

clipboard(swap().address, t("copied"))} @@ -77,11 +79,6 @@ const InvoiceSet = () => {


- clipboard(swap().bip21, t("copied"))}> - {t("copy_bip21")} - @@ -97,9 +94,12 @@ const InvoiceSet = () => { clipboard(swap().address, t("copied"))}> - {t("copy_address")} + onclick={() => clipboard(swap().bip21, t("copied"))}> + {t("copy_bip21")} + + {t("open_in_wallet")} +

diff --git a/src/status/SwapCreated.tsx b/src/status/SwapCreated.tsx index eb125f541..8e6047878 100644 --- a/src/status/SwapCreated.tsx +++ b/src/status/SwapCreated.tsx @@ -9,6 +9,7 @@ import t from "../i18n"; import { denomination, webln } from "../signals"; import { denominations, formatAmount } from "../utils/denomination"; import { clipboard, cropString } from "../utils/helper"; +import { invoicePrefix } from "../utils/invoice"; import { enableWebln } from "../utils/webln"; const SwapCreated = () => { @@ -33,7 +34,9 @@ const SwapCreated = () => { })}
- + + +

clipboard(swap().invoice, t("copied"))} @@ -50,11 +53,17 @@ const SwapCreated = () => { {t("pay_invoice_webln")} - clipboard(swap().invoice, t("copied"))}> - {t("copy_invoice")} - +


+
+ clipboard(swap().invoice, t("copied"))}> + {t("copy_invoice")} + + + {t("open_in_wallet")} + +
); };