Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Common/QRCode.js
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | return ( | ||||
{address.slice(0, prefixLength)} | {address.slice(0, prefixLength)} | ||||
</PrefixLabel> | </PrefixLabel> | ||||
<AddressHighlightTrim> | <AddressHighlightTrim> | ||||
{address.slice( | {address.slice( | ||||
prefixLength, | prefixLength, | ||||
prefixLength + trimAmount, | prefixLength + trimAmount, | ||||
)} | )} | ||||
</AddressHighlightTrim> | </AddressHighlightTrim> | ||||
{address.slice(trimAmount, address_trim)} | {address.slice(prefixLength + trimAmount, address_trim)} | ||||
<AddressHighlightTrim> | <AddressHighlightTrim> | ||||
{address.slice(-trimAmount)} | {address.slice(-trimAmount)} | ||||
</AddressHighlightTrim> | </AddressHighlightTrim> | ||||
</CustomInput> | </CustomInput> | ||||
)} | )} | ||||
</div> | </div> | ||||
</CopyToClipboard> | </CopyToClipboard> | ||||
); | ); | ||||
}; | }; |