diff --git a/src/components/Search/SearchList/ListItem/BaseListItemHeader.tsx b/src/components/Search/SearchList/ListItem/BaseListItemHeader.tsx index 182ef56ba397..07e13e31c43a 100644 --- a/src/components/Search/SearchList/ListItem/BaseListItemHeader.tsx +++ b/src/components/Search/SearchList/ListItem/BaseListItemHeader.tsx @@ -128,7 +128,7 @@ function BaseListItemHeader({ [CONST.SEARCH.TABLE_COLUMNS.GROUP_TOTAL]: ( ({ [CONST.SEARCH.TABLE_COLUMNS.GROUP_TOTAL]: ( + ), [CONST.SEARCH.TABLE_COLUMNS.SUBMITTED]: ( - + ), [CONST.SEARCH.TABLE_COLUMNS.APPROVED]: ( - + ), [CONST.SEARCH.TABLE_COLUMNS.EXPORTED]: ( - + ({ [CONST.SEARCH.TABLE_COLUMNS.GROUP_TOTAL]: ( - + ({ [CONST.SEARCH.TABLE_COLUMNS.GROUP_TOTAL]: ( onSortPress(columnName, order)} diff --git a/src/components/TransactionItemRow/index.tsx b/src/components/TransactionItemRow/index.tsx index 697152d63a7f..c02ef74ea708 100644 --- a/src/components/TransactionItemRow/index.tsx +++ b/src/components/TransactionItemRow/index.tsx @@ -333,7 +333,7 @@ function TransactionItemRow({ return ( {shouldShowAttendees && ( {isTimeRequest(transactionItem) ? null : ( ({backgroundColor, fill: fillColor})); const DEFAULT_WORKSPACE_COLOR = {backgroundColor: colors.blue400, fill: colors.blue700}; @@ -1791,17 +1802,18 @@ const createStyleUtils = (theme: ThemeColors, styles: ThemeStyles) => ({ return isDragging ? styles.cursorGrabbing : styles.cursorZoomOut; }, - getReportTableColumnStyles: ( - columnName: string, - isDateColumnWide = false, - isAmountColumnWide = false, - isTaxAmountColumnWide = false, - isSubmittedColumnWide = false, - isApprovedColumnWide = false, - isPostedColumnWide = false, - isExportedColumnWide = false, - shouldRemoveTotalColumnFlex = false, - ): ViewStyle => { + getReportTableColumnStyles: (columnName: string, options: GetReportTableColumnStylesParams = {}): ViewStyle => { + const { + isSubmittedColumnWide, + isApprovedColumnWide, + isPostedColumnWide, + isExportedColumnWide, + isDateColumnWide, + isTaxAmountColumnWide, + isAmountColumnWide, + shouldRemoveTotalColumnFlex, + } = options; + let columnWidth; switch (columnName) { case CONST.SEARCH.TABLE_COLUMNS.COMMENTS: