chore(trading): add button for copying asset id (#5075)

This commit is contained in:
Maciek 2023-10-18 17:02:34 +02:00 committed by GitHub
parent 236e35a92b
commit 097bf7c08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,16 @@ export const rows: Rows = [
key: AssetDetail.ID, key: AssetDetail.ID,
label: t('ID'), label: t('ID'),
tooltip: '', tooltip: '',
value: (asset) => truncateMiddle(asset.id), value: (asset) => (
<>
{truncateMiddle(asset.id)}{' '}
<CopyWithTooltip text={asset.id}>
<button title={t('Copy id to clipboard')}>
<VegaIcon size={14} name={VegaIconNames.COPY} />
</button>
</CopyWithTooltip>
</>
),
}, },
{ {
key: AssetDetail.TYPE, key: AssetDetail.TYPE,