From 1067a435c603cdba532c60c896821935d2bebd35 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Fri, 26 Jul 2024 19:53:12 -0400 Subject: [PATCH] Update TransactionListItem.tsx --- components/TransactionListItem.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/TransactionListItem.tsx b/components/TransactionListItem.tsx index 06420d5dc..ad7403df5 100644 --- a/components/TransactionListItem.tsx +++ b/components/TransactionListItem.tsx @@ -52,6 +52,8 @@ export const TransactionListItem: React.FC = 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 = React.mem chevron={false} rightTitle={rowTitle} rightTitleStyle={rowTitleStyle} - containerStyle={[containerStyle, style]} + containerStyle={combinedStyle} /> );