refactor(ui): normalize trade plan id chips
This commit is contained in:
parent
217b46e123
commit
f8b2107bff
@ -1515,26 +1515,30 @@ export function SimpleView() {
|
||||
</span>
|
||||
) : null}
|
||||
{(runtimeSnapshot?.tradeId || entry.linked_trade_id) ? (
|
||||
<button
|
||||
<Button
|
||||
type="button"
|
||||
variant="subtle"
|
||||
size="sm"
|
||||
onClick={() => void copyIdentifier('trade', String(runtimeSnapshot?.tradeId || entry.linked_trade_id))}
|
||||
className="saved-setup-id-chip"
|
||||
>
|
||||
{copiedKey === `trade:${String(runtimeSnapshot?.tradeId || entry.linked_trade_id)}`
|
||||
? 'Trade copied'
|
||||
: `Trade ${String(runtimeSnapshot?.tradeId || entry.linked_trade_id).slice(0, 18)}…`}
|
||||
</button>
|
||||
</Button>
|
||||
) : null}
|
||||
{runtimeSnapshot?.orderId ? (
|
||||
<button
|
||||
<Button
|
||||
type="button"
|
||||
variant="subtle"
|
||||
size="sm"
|
||||
onClick={() => void copyIdentifier('order', runtimeSnapshot.orderId)}
|
||||
className="saved-setup-id-chip"
|
||||
>
|
||||
{copiedKey === `order:${runtimeSnapshot.orderId}`
|
||||
? 'Order copied'
|
||||
: `Order ${runtimeSnapshot.orderId.slice(0, 12)}…`}
|
||||
</button>
|
||||
</Button>
|
||||
) : null}
|
||||
{updatedAt ? (
|
||||
<span className="saved-setup-updated">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user