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

- Replace Electron IPC with Tauri invoke() for API calls - Implement TauriSwapProgressEvent for state management - Remove IpcInvokeButton, replace with PromiseInvokeButton - Update models: new tauriModel.ts, refactor rpcModel.ts - Simplify SwapSlice state, remove processRunning flag - Refactor SwapStatePage to use TauriSwapProgressEvent - Update HistoryRow and HistoryRowActions for new data structures - Remove unused Electron-specific components (e.g., RpcStatusAlert) - Update dependencies: React 18, Material-UI v4 to v5 - Implement typeshare for Rust/TypeScript type synchronization - Add BobStateName enum for more precise swap state tracking - Refactor utility functions for Tauri compatibility - Remove JSONStream and other Electron-specific dependencies
22 lines
545 B
TypeScript
22 lines
545 B
TypeScript
import { Box } from "@material-ui/core";
|
|
import QRCode from "react-qr-code";
|
|
|
|
export default function BitcoinQrCode({ address }: { address: string }) {
|
|
return (
|
|
<Box
|
|
style={{
|
|
height: "100%",
|
|
margin: "0 auto",
|
|
}}
|
|
>
|
|
<QRCode
|
|
value={`bitcoin:${address}`}
|
|
size={256}
|
|
style={{ height: "auto", maxWidth: "100%", width: "100%" }}
|
|
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
|
|
/* @ts-ignore */
|
|
viewBox="0 0 256 256"
|
|
/>
|
|
</Box>
|
|
);
|
|
}
|