mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-04 12:34:31 -04:00

We now, - emit a Tauri event when the Monero lock transaction receives a new confirmation - emit a Tauri event with a list of transaction hashes once we have published the Monero redeem transaction - gui: display the confirmations and txids This PR closes #12.
20 lines
591 B
TypeScript
20 lines
591 B
TypeScript
import BitcoinIcon from "renderer/components/icons/BitcoinIcon";
|
|
import { isTestnet } from "store/config";
|
|
import { getBitcoinTxExplorerUrl } from "utils/conversionUtils";
|
|
import TransactionInfoBox, {
|
|
TransactionInfoBoxProps,
|
|
} from "./TransactionInfoBox";
|
|
|
|
export default function BitcoinTransactionInfoBox({
|
|
txId,
|
|
...props
|
|
}: Omit<TransactionInfoBoxProps, "icon" | "explorerUrlCreator">) {
|
|
return (
|
|
<TransactionInfoBox
|
|
txId={txId}
|
|
explorerUrlCreator={(txId) => getBitcoinTxExplorerUrl(txId, isTestnet())}
|
|
icon={<BitcoinIcon />}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|