Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Send/SendToken.js
Show First 20 Lines • Show All 356 Lines • ▼ Show 20 Lines | return ( | ||||
{apiError && <ApiError />} | {apiError && <ApiError />} | ||||
</Form> | </Form> | ||||
{tokenStats !== null && ( | {tokenStats !== null && ( | ||||
<Descriptions | <Descriptions | ||||
column={1} | column={1} | ||||
bordered | bordered | ||||
title={`Token info for "${token.info.tokenName}"`} | title={`Token info for "${token.info.tokenName}"`} | ||||
> | > | ||||
<Descriptions.Item label="Icon"> | |||||
{currency.tokenIconsUrl !== '' ? ( | |||||
<Img | |||||
src={`${currency.tokenIconsUrl}/256/${tokenId}.png`} | |||||
width={256} | |||||
height={256} | |||||
unloader={ | |||||
<img | |||||
alt={`identicon of tokenId ${tokenId} `} | |||||
height="32" | |||||
width="32" | |||||
style={{ | |||||
borderRadius: '50%', | |||||
}} | |||||
key={`identicon-${tokenId}`} | |||||
src={makeBlockie( | |||||
tokenId, | |||||
)} | |||||
/> | |||||
} | |||||
/> | |||||
) : ( | |||||
<img | |||||
alt={`identicon of tokenId ${tokenId} `} | |||||
height="32" | |||||
width="32" | |||||
style={{ | |||||
borderRadius: '50%', | |||||
}} | |||||
key={`identicon-${tokenId}`} | |||||
src={makeBlockie(tokenId)} | |||||
/> | |||||
)} | |||||
</Descriptions.Item> | |||||
<Descriptions.Item label="Decimals"> | <Descriptions.Item label="Decimals"> | ||||
{token.info.decimals} | {token.info.decimals} | ||||
</Descriptions.Item> | </Descriptions.Item> | ||||
<Descriptions.Item label="Token ID"> | <Descriptions.Item label="Token ID"> | ||||
{token.tokenId} | {token.tokenId} | ||||
</Descriptions.Item> | </Descriptions.Item> | ||||
{tokenStats && ( | {tokenStats && ( | ||||
<> | <> | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |