diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts index fe0a36e9..ce919895 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 47bec503..9e46ba2e 100644 --- a/src/status/InvoiceSet.tsx +++ b/src/status/InvoiceSet.tsx @@ -9,7 +9,7 @@ import { useGlobalContext } from "../context/Global"; import { usePayContext } from "../context/Pay"; import { useWeb3Signer } from "../context/Web3"; import { denominations, formatAmount } from "../utils/denomination"; -import { clipboard, cropString } from "../utils/helper"; +import { clipboard, cropString, isMobile } from "../utils/helper"; import { decodeInvoice } from "../utils/invoice"; import { prefix0x, satoshiToWei } from "../utils/rootstock"; @@ -64,7 +64,9 @@ const InvoiceSet = () => { })}
clipboard(swap().address)} @@ -77,9 +79,6 @@ const InvoiceSet = () => {
clipboard(swap().invoice)} @@ -50,9 +53,17 @@ const SwapCreated = () => { {t("pay_invoice_webln")} - clipboard(swap().invoice)}> - {t("copy_invoice")} - +