diff --git a/src/components/SelectionList/SearchTableHeader.tsx b/src/components/SelectionList/SearchTableHeader.tsx index 9d2a5cd6d707..ab930936ec9f 100644 --- a/src/components/SelectionList/SearchTableHeader.tsx +++ b/src/components/SelectionList/SearchTableHeader.tsx @@ -19,6 +19,12 @@ type SearchColumnConfig = { }; const SearchColumns: SearchColumnConfig[] = [ + { + columnName: CONST.SEARCH_TABLE_COLUMNS.RECEIPT, + translationKey: 'common.receipt', + shouldShow: () => true, + isSortable: false, + }, { columnName: CONST.SEARCH_TABLE_COLUMNS.DATE, translationKey: 'common.date', @@ -94,24 +100,18 @@ function SearchTableHeader({data, sortBy, sortOrder, onSortPress}: SearchTableHe return; } - // Todo add textStyle - // - return ( - {SearchColumns.map(({columnName, translationKey, shouldShow, isSortable}) => { const isActive = sortBy === columnName; + const textStyle = columnName === CONST.SEARCH_TABLE_COLUMNS.RECEIPT ? StyleUtils.getTextOverflowStyle('clip') : null; return ( ; type SearchColumnType = ValueOf;