@@ -13,8 +13,6 @@ import useTheme from '@hooks/useTheme';
1313import useThemeStyles from '@hooks/useThemeStyles' ;
1414import { getReportIDForTransaction } from '@libs/MoneyRequestReportUtils' ;
1515import Navigation from '@libs/Navigation/Navigation' ;
16- import { isTransactionAmountTooLong , isTransactionTaxAmountTooLong } from '@libs/SearchUIUtils' ;
17- import shouldShowTransactionYear from '@libs/TransactionUtils/shouldShowTransactionYear' ;
1816import variables from '@styles/variables' ;
1917import { setActiveTransactionThreadIDs } from '@userActions/TransactionThreadNavigation' ;
2018import CONST from '@src/CONST' ;
@@ -45,9 +43,9 @@ function ReportListItem<TItem extends ListItem>({
4543 const { isLargeScreenWidth} = useResponsiveLayout ( ) ;
4644
4745 const { amountColumnSize, dateColumnSize, taxAmountColumnSize} = useMemo ( ( ) => {
48- const isAmountColumnWide = reportItem . transactions . some ( ( transaction ) => isTransactionAmountTooLong ( transaction ) ) ;
49- const isTaxAmountColumnWide = reportItem . transactions . some ( ( transaction ) => isTransactionTaxAmountTooLong ( transaction ) ) ;
50- const shouldShowYearForSomeTransaction = reportItem . transactions . some ( ( transaction ) => shouldShowTransactionYear ( transaction ) ) ;
46+ const isAmountColumnWide = reportItem . transactions . some ( ( transaction ) => transaction . isAmountColumnWide ) ;
47+ const isTaxAmountColumnWide = reportItem . transactions . some ( ( transaction ) => transaction . isTaxAmountColumnWide ) ;
48+ const shouldShowYearForSomeTransaction = reportItem . transactions . some ( ( transaction ) => transaction . shouldShowYear ) ;
5149 return {
5250 amountColumnSize : isAmountColumnWide ? CONST . SEARCH . TABLE_COLUMN_SIZES . WIDE : CONST . SEARCH . TABLE_COLUMN_SIZES . NORMAL ,
5351 taxAmountColumnSize : isTaxAmountColumnWide ? CONST . SEARCH . TABLE_COLUMN_SIZES . WIDE : CONST . SEARCH . TABLE_COLUMN_SIZES . NORMAL ,
0 commit comments