Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Send/SendToken.js
Show First 20 Lines • Show All 527 Lines • ▼ Show 20 Lines | return ( | ||||
placeholder: `${currency.tokenTicker} Address`, | placeholder: `${currency.tokenTicker} Address`, | ||||
name: 'address', | name: 'address', | ||||
onChange: e => | onChange: e => | ||||
handleTokenAddressChange(e), | handleTokenAddressChange(e), | ||||
required: true, | required: true, | ||||
value: formData.address, | value: formData.address, | ||||
}} | }} | ||||
/> | /> | ||||
<DestinationAmount | <DestinationAmount | ||||
bytesofman: Could this not be patched in `EnhancedInputs.js` ? | |||||
validateStatus={ | validateStatus={ | ||||
sendTokenAmountError ? 'error' : '' | sendTokenAmountError ? 'error' : '' | ||||
} | } | ||||
help={ | help={ | ||||
sendTokenAmountError | sendTokenAmountError | ||||
? sendTokenAmountError | ? sendTokenAmountError | ||||
: '' | : '' | ||||
} | } | ||||
onMax={onMax} | onMax={onMax} | ||||
inputProps={{ | inputProps={{ | ||||
name: 'value', | name: 'value', | ||||
step: 1 / 10 ** token.info.decimals, | step: 1 / 10 ** token.info.decimals, | ||||
onWheel: event => event.target.blur(), | |||||
placeholder: 'Amount', | placeholder: 'Amount', | ||||
prefix: | prefix: | ||||
currency.tokenIconsUrl !== '' ? ( | currency.tokenIconsUrl !== '' ? ( | ||||
<Img | <Img | ||||
src={`${currency.tokenIconsUrl}/32/${tokenId}.png`} | src={`${currency.tokenIconsUrl}/32/${tokenId}.png`} | ||||
width={16} | width={16} | ||||
height={16} | height={16} | ||||
unloader={ | unloader={ | ||||
▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines |
Could this not be patched in EnhancedInputs.js ?