Merge pull request #2959 from BlueWallet/limpbrains-truncate

REF: coincontrol truncate addresses middle
This commit is contained in:
GLaDOS 2021-04-15 14:04:32 +01:00 committed by GitHub
commit a0526f7a08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,6 @@ const OutputList = ({
const { colors } = useTheme(); const { colors } = useTheme();
const { txMetadata } = useContext(BlueStorageContext); const { txMetadata } = useContext(BlueStorageContext);
const memo = oMemo || txMetadata[txid]?.memo || ''; const memo = oMemo || txMetadata[txid]?.memo || '';
const shortId = `${address.substring(0, 9)}...${address.substr(address.length - 9)}`;
const color = `#${txid.substring(0, 6)}`; const color = `#${txid.substring(0, 6)}`;
const amount = formatBalance(value, balanceUnit, true); const amount = formatBalance(value, balanceUnit, true);
@ -103,8 +102,8 @@ const OutputList = ({
/> />
<ListItem.Content> <ListItem.Content>
<ListItem.Title style={oStyles.amount}>{amount}</ListItem.Title> <ListItem.Title style={oStyles.amount}>{amount}</ListItem.Title>
<ListItem.Subtitle style={oStyles.memo} numberOfLines={1}> <ListItem.Subtitle style={oStyles.memo} numberOfLines={1} ellipsizeMode="middle">
{memo || shortId} {memo || address}
</ListItem.Subtitle> </ListItem.Subtitle>
</ListItem.Content> </ListItem.Content>
{change && <ChangeBadge />} {change && <ChangeBadge />}