From 2fd1c571b83eb478f589d0ee2d9ba7082d5d2632 Mon Sep 17 00:00:00 2001 From: Mateusz Titz Date: Wed, 29 May 2024 16:12:58 +0200 Subject: [PATCH] Fix receipt header missing after merge conflicts --- .../SelectionList/SearchTableHeader.tsx | 16 ++++++++-------- src/libs/SearchUtils.ts | 1 - 2 files changed, 8 insertions(+), 9 deletions(-) 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;