Skip to content

Commit

Permalink
feat: update layout of fiber close tx
Browse files Browse the repository at this point in the history
hide the second recipient address if only one recipient receives
refund in the close tx
  • Loading branch information
Keith-CY committed Jan 6, 2025
1 parent 02aa010 commit c81fefe
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/pages/Fiber/GraphNode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,20 @@ const GraphNode = () => {
</span>
<span>({acc1.amount})</span>
</div>
<div>
And
<span className={styles.addr}>
<Tooltip title={acc2.address}>
<Link to={`/address/${acc2.address}`} className="monospace">
<div>{acc2.address.slice(0, -8)}</div>
<div>{acc2.address.slice(-8)}</div>
</Link>
</Tooltip>
</span>
<span>({acc2.amount})</span>
</div>
{acc2 ? (
<div>
And
<span className={styles.addr}>
<Tooltip title={acc2.address}>
<Link to={`/address/${acc2.address}`} className="monospace">
<div>{acc2.address.slice(0, -8)}</div>
<div>{acc2.address.slice(-8)}</div>
</Link>
</Tooltip>
</span>
<span>({acc2.amount})</span>
</div>
) : null}
</div>
)
})}
Expand Down

0 comments on commit c81fefe

Please sign in to comment.