Update TransactionListItem.tsx

This commit is contained in:
Marcos Rodriguez Velez 2024-07-26 19:53:12 -04:00
parent 824608eeb0
commit 1067a435c6
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

View File

@ -52,6 +52,8 @@ export const TransactionListItem: React.FC<TransactionListItemProps> = React.mem
[colors.lightBorder],
);
const combinedStyle = useMemo(() => [containerStyle, style], [containerStyle, style]);
const shortenContactName = (name: string): string => {
if (name.length < 16) return name;
return name.substr(0, 7) + '...' + name.substr(name.length - 7, 7);
@ -333,7 +335,7 @@ export const TransactionListItem: React.FC<TransactionListItemProps> = React.mem
chevron={false}
rightTitle={rowTitle}
rightTitleStyle={rowTitleStyle}
containerStyle={[containerStyle, style]}
containerStyle={combinedStyle}
/>
</ToolTipMenu>
);