mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-20 10:55:37 -05:00
feat(gui): Dedicated react component for truncating swap ids, peer ids, ...
This commit is contained in:
parent
c486ca5de9
commit
5e87be8a8b
8 changed files with 32 additions and 10 deletions
|
|
@ -11,6 +11,7 @@ import {
|
|||
import { ReactNode } from "react";
|
||||
import { exhaustiveGuard } from "utils/typescriptUtils";
|
||||
import HumanizedBitcoinBlockDuration from "../other/HumanizedBitcoinBlockDuration";
|
||||
import TruncatedText from "../other/TruncatedText";
|
||||
import {
|
||||
SwapCancelRefundButton,
|
||||
SwapResumeButton,
|
||||
|
|
@ -219,7 +220,7 @@ export default function SwapStatusAlert({
|
|||
variant="filled"
|
||||
>
|
||||
<AlertTitle>
|
||||
Swap {swap.swap_id.substring(0, 5)}... is unfinished
|
||||
Swap <TruncatedText>{swap.swap_id}</TruncatedText> is unfinished
|
||||
</AlertTitle>
|
||||
<SwapAlertStatusText swap={swap} />
|
||||
</Alert>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue