@@ -41,13 +41,18 @@ type ActionCellProps = {
41
41
onButtonPress : ( ) => void ;
42
42
} & CellProps ;
43
43
44
+ type TotalCellProps = {
45
+ isChildListItem : boolean ;
46
+ } & TransactionCellProps ;
47
+
44
48
type TransactionListItemRowProps = {
45
49
item : TransactionListItemType ;
46
50
showTooltip : boolean ;
47
51
onButtonPress : ( ) => void ;
48
52
showItemHeaderOnNarrowLayout ?: boolean ;
49
53
containerStyle ?: StyleProp < ViewStyle > ;
50
54
isHovered ?: boolean ;
55
+ isChildListItem ?: boolean ;
51
56
} ;
52
57
53
58
const getTypeIcon = ( type ?: SearchTransactionType ) => {
@@ -112,15 +117,15 @@ function MerchantCell({transactionItem, showTooltip}: TransactionCellProps) {
112
117
) ;
113
118
}
114
119
115
- function TotalCell ( { showTooltip, isLargeScreenWidth, transactionItem} : TransactionCellProps ) {
120
+ function TotalCell ( { showTooltip, isLargeScreenWidth, transactionItem, isChildListItem } : TotalCellProps ) {
116
121
const styles = useThemeStyles ( ) ;
117
122
const currency = TransactionUtils . getCurrency ( transactionItem ) ;
118
123
119
124
return (
120
125
< TextWithTooltip
121
126
shouldShowTooltip = { showTooltip }
122
127
text = { CurrencyUtils . convertToDisplayString ( transactionItem . formattedTotal , currency ) }
123
- style = { [ styles . optionDisplayName , styles . textNewKansasNormal , styles . pre , styles . justifyContentCenter , isLargeScreenWidth ? undefined : styles . textAlignRight ] }
128
+ style = { [ styles . optionDisplayName , styles . justifyContentCenter , isLargeScreenWidth ? undefined : styles . textAlignRight , isChildListItem ? styles . label : undefined ] }
124
129
/>
125
130
) ;
126
131
}
@@ -204,7 +209,15 @@ function TaxCell({transactionItem, showTooltip}: TransactionCellProps) {
204
209
) ;
205
210
}
206
211
207
- function TransactionListItemRow ( { item, showTooltip, onButtonPress, showItemHeaderOnNarrowLayout = true , containerStyle, isHovered = false } : TransactionListItemRowProps ) {
212
+ function TransactionListItemRow ( {
213
+ item,
214
+ showTooltip,
215
+ onButtonPress,
216
+ showItemHeaderOnNarrowLayout = true ,
217
+ containerStyle,
218
+ isHovered = false ,
219
+ isChildListItem = false ,
220
+ } : TransactionListItemRowProps ) {
208
221
const styles = useThemeStyles ( ) ;
209
222
const { translate} = useLocalize ( ) ;
210
223
const { isLargeScreenWidth} = useWindowDimensions ( ) ;
@@ -255,6 +268,7 @@ function TransactionListItemRow({item, showTooltip, onButtonPress, showItemHeade
255
268
showTooltip = { showTooltip }
256
269
transactionItem = { item }
257
270
isLargeScreenWidth = { isLargeScreenWidth }
271
+ isChildListItem = { isChildListItem }
258
272
/>
259
273
< View style = { [ styles . flexRow , styles . gap1 , styles . justifyContentCenter ] } >
260
274
< TypeCell
@@ -344,6 +358,7 @@ function TransactionListItemRow({item, showTooltip, onButtonPress, showItemHeade
344
358
showTooltip = { showTooltip }
345
359
transactionItem = { item }
346
360
isLargeScreenWidth = { isLargeScreenWidth }
361
+ isChildListItem = { isChildListItem }
347
362
/>
348
363
</ View >
349
364
< View style = { [ StyleUtils . getSearchTableColumnStyles ( CONST . SEARCH_TABLE_COLUMNS . TYPE ) ] } >
0 commit comments