From d26e9c269347496918fadd8b5a35e21068abdc33 Mon Sep 17 00:00:00 2001 From: dmkt9 Date: Thu, 25 Dec 2025 09:09:22 +0700 Subject: [PATCH 1/8] Fix - Contact Import button not clickable due to autoscroll resets the list --- src/libs/OptionsListUtils/index.ts | 2 +- .../MoneyRequestParticipantsSelector.tsx | 38 ++++++++++--------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index 42439305b3da..505e4e4842d0 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -1408,7 +1408,7 @@ function optionsOrderBy(options: T[], comparator: (option: if (!peekedValue) { throw new Error('Heap is empty, cannot peek value'); } - if (comparator(option) > comparator(peekedValue)) { + if (reversed ? comparator(option) < comparator(peekedValue) : comparator(option) > comparator(peekedValue)) { heap.pop(); heap.push(option); } diff --git a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx index e067b69653df..ac561c54db01 100644 --- a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx +++ b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx @@ -432,13 +432,31 @@ function MoneyRequestParticipantsSelector({ InteractionManager.runAfterInteractions(importAndSaveContacts); }, [importAndSaveContacts, setContactPermissionState]); + const footerContentAbovePaginationComponent = useMemo(() => { + const shouldShowImportContactsButton = contactState?.showImportUI ?? showImportContacts; + if (!shouldShowImportContactsButton || searchTerm.length) { + return null; + } + return ( + + ); + }, [contactState?.showImportUI, showImportContacts, translate, icons.UserPlus, styles.ph0, searchTerm.length]); + const footerContent = useMemo(() => { if (isDismissed && !shouldShowSplitBillErrorMessage && !selectedOptions.length) { - return; + return footerContentAbovePaginationComponent; } return ( <> + {footerContentAbovePaginationComponent} + {shouldShowReferralBanner && !isCategorizeOrShareAction && ( { - const shouldShowImportContactsButton = contactState?.showImportUI ?? showImportContacts; - if (!shouldShowImportContactsButton) { - return null; - } - return ( - - ); - }, [icons.UserPlus, contactState?.showImportUI, showImportContacts, styles.mb3, translate]); - const ClickableImportContactTextComponent = useMemo(() => { if (searchTerm.length || isSearchingForReports) { return; @@ -581,7 +584,6 @@ function MoneyRequestParticipantsSelector({ } footerContent={footerContent} listEmptyContent={EmptySelectionListContentWithPermission} - footerContentAbovePagination={footerContentAbovePaginationComponent} headerMessage={header} showLoadingPlaceholder={showLoadingPlaceholder} canSelectMultiple={isIOUSplit && isAllowedToSplit} From 1e235b7a2e2136a987ee696b4d49412042f5b1e3 Mon Sep 17 00:00:00 2001 From: dmkt9 Date: Mon, 5 Jan 2026 18:31:30 +0700 Subject: [PATCH 2/8] Fix - Contact Import button not clickable due to autoscroll resets the list --- tests/unit/OptionsListUtilsTest.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/unit/OptionsListUtilsTest.tsx b/tests/unit/OptionsListUtilsTest.tsx index e4dfa68ebdf3..66f84ed9f766 100644 --- a/tests/unit/OptionsListUtilsTest.tsx +++ b/tests/unit/OptionsListUtilsTest.tsx @@ -2446,6 +2446,23 @@ describe('OptionsListUtils', () => { const result = optionsOrderBy(options, comparator, 0); expect(result).toEqual([]); }); + + it('returns the older options up to the specified limit', () => { + const options: OptionData[] = [ + {reportID: '1', lastVisibleActionCreated: '2022-01-01T10:00:00Z'} as OptionData, + {reportID: '2', lastVisibleActionCreated: '2022-01-01T12:00:00Z'} as OptionData, + {reportID: '3', lastVisibleActionCreated: '2022-01-01T09:00:00Z'} as OptionData, + {reportID: '4', lastVisibleActionCreated: '2022-01-01T13:00:00Z'} as OptionData, + ]; + const comparator = (option: OptionData) => option.lastVisibleActionCreated ?? ''; + // We will pass reversed === true to sort the list in ascending order + const result = optionsOrderBy(options, comparator, 2, undefined, true); + expect(result.length).toBe(2); + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + expect(result.at(0)!.reportID).toBe('3'); + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + expect(result.at(1)!.reportID).toBe('1'); + }); }); describe('sortAlphabetically', () => { From 38ccf9003883b63bd724d84b9816d6245919440d Mon Sep 17 00:00:00 2001 From: dmkt9 Date: Mon, 5 Jan 2026 18:57:45 +0700 Subject: [PATCH 3/8] Fix - Contact Import button not clickable due to autoscroll resets the list --- .../iou/request/MoneyRequestParticipantsSelector.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx index 285f22029e40..61708dc54442 100644 --- a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx +++ b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx @@ -432,9 +432,9 @@ function MoneyRequestParticipantsSelector({ InteractionManager.runAfterInteractions(importAndSaveContacts); }, [importAndSaveContacts, setContactPermissionState]); - const footerContentAbovePaginationComponent = useMemo(() => { + const importContactsButtonComponent = useMemo(() => { const shouldShowImportContactsButton = contactState?.showImportUI ?? showImportContacts; - if (!shouldShowImportContactsButton || searchTerm.length) { + if (!shouldShowImportContactsButton || showLoadingPlaceholder || shouldShowListEmptyContent) { return null; } return ( @@ -446,16 +446,16 @@ function MoneyRequestParticipantsSelector({ style={styles.ph0} /> ); - }, [contactState?.showImportUI, showImportContacts, translate, icons.UserPlus, styles.ph0, searchTerm.length]); + }, [icons.UserPlus, contactState?.showImportUI, showImportContacts, translate, styles.ph0, showLoadingPlaceholder, shouldShowListEmptyContent]); const footerContent = useMemo(() => { if (isDismissed && !shouldShowSplitBillErrorMessage && !selectedOptions.length) { - return footerContentAbovePaginationComponent; + return importContactsButtonComponent; } return ( <> - {footerContentAbovePaginationComponent} + {importContactsButtonComponent} {shouldShowReferralBanner && !isCategorizeOrShareAction && ( Date: Thu, 15 Jan 2026 19:05:32 +0700 Subject: [PATCH 4/8] Fix - Contact Import button not clickable due to autoscroll resets the list --- .../MoneyRequestParticipantsSelector.tsx | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx index a1d047e619e6..db8eacc5d0ed 100644 --- a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx +++ b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx @@ -432,7 +432,7 @@ function MoneyRequestParticipantsSelector({ }, [importAndSaveContacts, setContactPermissionState]); const importContactsButtonComponent = useMemo(() => { - const shouldShowImportContactsButton = contactState?.showImportUI ?? showImportContacts; + const shouldShowImportContactsButton = contactState?.permissionStatus !== RESULTS.UNAVAILABLE && (contactState?.showImportUI ?? showImportContacts); if (!shouldShowImportContactsButton || showLoadingPlaceholder || shouldShowListEmptyContent) { return null; } @@ -442,20 +442,17 @@ function MoneyRequestParticipantsSelector({ icon={icons.UserPlus} onPress={goToSettings} shouldShowRightIcon - style={styles.ph0} /> ); - }, [icons.UserPlus, contactState?.showImportUI, showImportContacts, translate, styles.ph0, showLoadingPlaceholder, shouldShowListEmptyContent]); + }, [icons.UserPlus, contactState?.permissionStatus, contactState?.showImportUI, showImportContacts, translate, showLoadingPlaceholder, shouldShowListEmptyContent]); const footerContent = useMemo(() => { if (isDismissed && !shouldShowSplitBillErrorMessage && !selectedOptions.length) { - return importContactsButtonComponent; + return; } return ( <> - {importContactsButtonComponent} - {shouldShowReferralBanner && !isCategorizeOrShareAction && ( + <> + + {importContactsButtonComponent} + } footerContent={footerContent} listEmptyContent={EmptySelectionListContentWithPermission} From 668287ddca78b7c4d511c50aec5f362926834115 Mon Sep 17 00:00:00 2001 From: dmkt9 Date: Fri, 16 Jan 2026 09:09:02 +0700 Subject: [PATCH 5/8] Fix - Contact Import button not clickable due to autoscroll resets the list --- .../BaseSelectionListItemRenderer.tsx | 7 +++ .../SelectionListWithSections/types.ts | 6 +++ src/libs/ReportUtils.ts | 3 ++ .../MoneyRequestParticipantsSelector.tsx | 54 +++++++++++-------- 4 files changed, 47 insertions(+), 23 deletions(-) diff --git a/src/components/SelectionListWithSections/BaseSelectionListItemRenderer.tsx b/src/components/SelectionListWithSections/BaseSelectionListItemRenderer.tsx index 8e374b0a08c8..7b0950622030 100644 --- a/src/components/SelectionListWithSections/BaseSelectionListItemRenderer.tsx +++ b/src/components/SelectionListWithSections/BaseSelectionListItemRenderer.tsx @@ -69,8 +69,15 @@ function BaseSelectionListItemRenderer({ return onCheckboxPress ? () => onCheckboxPress(item) : undefined; }; + // We add this render condition to allow customizing how an item is rendered in the list, + // without requiring that item to be a ListItem. + if (item.shouldOnlyRenderHeaderContent) { + return item.headerContent; + } + return ( <> + {item.headerContent && item.headerContent} = { /** Whether the brick road indicator should be shown */ brickRoadIndicator?: BrickRoad | '' | null; + /** Allows us to render only the header content, making it easier to embed items other than ListItem into the list */ + shouldOnlyRenderHeaderContent?: boolean; + + /** Element to render above the ListItem */ + headerContent?: ReactNode; + /** Element to render below the ListItem */ footerContent?: ReactNode; diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 3f5b2f9cdbd1..40d08eb5912f 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -1,5 +1,6 @@ /* eslint-disable max-lines */ import {findFocusedRoute} from '@react-navigation/native'; +import type {ReactNode} from '@types/react'; import {format} from 'date-fns'; import {Str} from 'expensify-common'; import {deepEqual} from 'fast-equals'; @@ -899,6 +900,8 @@ type OptionData = { lastName?: string; avatar?: AvatarSource; timezone?: Timezone; + shouldOnlyRenderHeaderContent?: boolean; + headerContent?: ReactNode; } & Report & ReportNameValuePairs; diff --git a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx index db8eacc5d0ed..d0a2ea8069e6 100644 --- a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx +++ b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx @@ -272,6 +272,21 @@ function MoneyRequestParticipantsSelector({ !(contactPermissionState === RESULTS.GRANTED || contactPermissionState === RESULTS.LIMITED) && inputHelperText === translate('common.noResultsFound'); + const importContactsButtonComponent = useMemo(() => { + const shouldShowImportContactsButton = contactState?.showImportUI ?? showImportContacts; + if (!shouldShowImportContactsButton) { + return null; + } + return ( + + ); + }, [icons.UserPlus, contactState?.showImportUI, showImportContacts, translate]); + /** * Returns the sections needed for the OptionsSelector * @returns {Array} @@ -349,6 +364,16 @@ function MoneyRequestParticipantsSelector({ headerMessage = inputHelperText; } + const sectionsLength = newSections.reduce((value, section) => value + section.data.length, 0); + if (sectionsLength > 0 && importContactsButtonComponent) { + // Always render the "Import contacts" button at the top of the list + newSections.unshift({ + title: undefined, + data: [{shouldOnlyRenderHeaderContent: true, headerContent: importContactsButtonComponent}], + shouldShow: true, + }); + } + return [newSections, headerMessage]; }, [ areOptionsInitialized, @@ -368,6 +393,7 @@ function MoneyRequestParticipantsSelector({ isPerDiemRequest, showImportContacts, inputHelperText, + importContactsButtonComponent, ]); /** @@ -431,21 +457,6 @@ function MoneyRequestParticipantsSelector({ InteractionManager.runAfterInteractions(importAndSaveContacts); }, [importAndSaveContacts, setContactPermissionState]); - const importContactsButtonComponent = useMemo(() => { - const shouldShowImportContactsButton = contactState?.permissionStatus !== RESULTS.UNAVAILABLE && (contactState?.showImportUI ?? showImportContacts); - if (!shouldShowImportContactsButton || showLoadingPlaceholder || shouldShowListEmptyContent) { - return null; - } - return ( - - ); - }, [icons.UserPlus, contactState?.permissionStatus, contactState?.showImportUI, showImportContacts, translate, showLoadingPlaceholder, shouldShowListEmptyContent]); - const footerContent = useMemo(() => { if (isDismissed && !shouldShowSplitBillErrorMessage && !selectedOptions.length) { return; @@ -571,14 +582,11 @@ function MoneyRequestParticipantsSelector({ shouldSingleExecuteRowSelect canShowProductTrainingTooltip={canShowManagerMcTest} headerContent={ - <> - - {importContactsButtonComponent} - + } footerContent={footerContent} listEmptyContent={EmptySelectionListContentWithPermission} From f094cb20de19c734104819fb5538fb5822072594 Mon Sep 17 00:00:00 2001 From: dmkt9 Date: Fri, 16 Jan 2026 09:16:12 +0700 Subject: [PATCH 6/8] fix ts --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 40d08eb5912f..abe2504ac617 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -1,6 +1,5 @@ /* eslint-disable max-lines */ import {findFocusedRoute} from '@react-navigation/native'; -import type {ReactNode} from '@types/react'; import {format} from 'date-fns'; import {Str} from 'expensify-common'; import {deepEqual} from 'fast-equals'; @@ -10,6 +9,7 @@ import isEmpty from 'lodash/isEmpty'; import isNumber from 'lodash/isNumber'; import mapValues from 'lodash/mapValues'; import lodashMaxBy from 'lodash/maxBy'; +import type {ReactNode} from 'react'; import type {ColorValue} from 'react-native'; import type {NullishDeep, OnyxCollection, OnyxEntry, OnyxUpdate} from 'react-native-onyx'; import Onyx from 'react-native-onyx'; From db6a582851a4a540bdbb31780221327aac868cf1 Mon Sep 17 00:00:00 2001 From: dmkt9 Date: Wed, 21 Jan 2026 09:23:31 +0700 Subject: [PATCH 7/8] Fix - Contact Import button not clickable due to autoscroll resets the list --- .../BaseSelectionListItemRenderer.tsx | 7 --- .../BaseSelectionListWithSections.tsx | 3 +- .../SelectionListWithSections/types.ts | 9 ++-- src/libs/ReportUtils.ts | 3 -- .../MoneyRequestParticipantsSelector.tsx | 43 ++++++++----------- 5 files changed, 22 insertions(+), 43 deletions(-) diff --git a/src/components/SelectionListWithSections/BaseSelectionListItemRenderer.tsx b/src/components/SelectionListWithSections/BaseSelectionListItemRenderer.tsx index 7b0950622030..8e374b0a08c8 100644 --- a/src/components/SelectionListWithSections/BaseSelectionListItemRenderer.tsx +++ b/src/components/SelectionListWithSections/BaseSelectionListItemRenderer.tsx @@ -69,15 +69,8 @@ function BaseSelectionListItemRenderer({ return onCheckboxPress ? () => onCheckboxPress(item) : undefined; }; - // We add this render condition to allow customizing how an item is rendered in the list, - // without requiring that item to be a ListItem. - if (item.shouldOnlyRenderHeaderContent) { - return item.headerContent; - } - return ( <> - {item.headerContent && item.headerContent} ({ includeSafeAreaPaddingBottom = true, shouldTextInputInterceptSwipe = false, listHeaderContent, + shouldShowSectionTitleEvenWithListHeaderContent = false, onEndReached, onEndReachedThreshold, windowSize = 5, @@ -593,7 +594,7 @@ function BaseSelectionListWithSections({ return ; } - if (!section.title || isEmptyObject(section.data) || listHeaderContent) { + if (!section.title || isEmptyObject(section.data) || (!shouldShowSectionTitleEvenWithListHeaderContent && listHeaderContent)) { return null; } diff --git a/src/components/SelectionListWithSections/types.ts b/src/components/SelectionListWithSections/types.ts index 7fd1da0dbbf7..1b5c1ba4ecf1 100644 --- a/src/components/SelectionListWithSections/types.ts +++ b/src/components/SelectionListWithSections/types.ts @@ -208,12 +208,6 @@ type ListItem = { /** Whether the brick road indicator should be shown */ brickRoadIndicator?: BrickRoad | '' | null; - /** Allows us to render only the header content, making it easier to embed items other than ListItem into the list */ - shouldOnlyRenderHeaderContent?: boolean; - - /** Element to render above the ListItem */ - headerContent?: ReactNode; - /** Element to render below the ListItem */ footerContent?: ReactNode; @@ -876,6 +870,9 @@ type SelectionListProps = Partial & { /** Custom content to display in the header of list component. */ listHeaderContent?: React.JSX.Element | null; + /** By default, when `listHeaderContent` is passed, the section title will not be rendered. This flag allows the section title to still be rendered in certain cases. */ + shouldShowSectionTitleEvenWithListHeaderContent?: boolean; + /** Custom content to display in the footer */ footerContent?: ReactNode; diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 567ac9e142e8..e7504f58e8e7 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -9,7 +9,6 @@ import isEmpty from 'lodash/isEmpty'; import isNumber from 'lodash/isNumber'; import mapValues from 'lodash/mapValues'; import lodashMaxBy from 'lodash/maxBy'; -import type {ReactNode} from 'react'; import type {ColorValue} from 'react-native'; import type {NullishDeep, OnyxCollection, OnyxEntry, OnyxUpdate} from 'react-native-onyx'; import Onyx from 'react-native-onyx'; @@ -906,8 +905,6 @@ type OptionData = { lastName?: string; avatar?: AvatarSource; timezone?: Timezone; - shouldOnlyRenderHeaderContent?: boolean; - headerContent?: ReactNode; } & Report & ReportNameValuePairs; diff --git a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx index 35595d90593a..76ecf5293a8e 100644 --- a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx +++ b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx @@ -272,21 +272,6 @@ function MoneyRequestParticipantsSelector({ !(contactPermissionState === RESULTS.GRANTED || contactPermissionState === RESULTS.LIMITED) && inputHelperText === translate('common.noResultsFound'); - const importContactsButtonComponent = useMemo(() => { - const shouldShowImportContactsButton = contactState?.showImportUI ?? showImportContacts; - if (!shouldShowImportContactsButton) { - return null; - } - return ( - - ); - }, [icons.UserPlus, contactState?.showImportUI, showImportContacts, translate]); - /** * Returns the sections needed for the OptionsSelector * @returns {Array} @@ -364,16 +349,6 @@ function MoneyRequestParticipantsSelector({ headerMessage = inputHelperText; } - const sectionsLength = newSections.reduce((value, section) => value + section.data.length, 0); - if (sectionsLength > 0 && importContactsButtonComponent) { - // Always render the "Import contacts" button at the top of the list - newSections.unshift({ - title: undefined, - data: [{shouldOnlyRenderHeaderContent: true, headerContent: importContactsButtonComponent}], - shouldShow: true, - }); - } - return [newSections, headerMessage]; }, [ areOptionsInitialized, @@ -393,7 +368,6 @@ function MoneyRequestParticipantsSelector({ isPerDiemRequest, showImportContacts, inputHelperText, - importContactsButtonComponent, ]); /** @@ -530,6 +504,21 @@ function MoneyRequestParticipantsSelector({ [isIOUSplit, addParticipantToSelection, addSingleParticipant], ); + const importContactsButtonComponent = useMemo(() => { + const shouldShowImportContactsButton = contactState?.showImportUI ?? showImportContacts; + if (!shouldShowImportContactsButton) { + return null; + } + return ( + + ); + }, [icons.UserPlus, contactState?.showImportUI, showImportContacts, translate]); + const ClickableImportContactTextComponent = useMemo(() => { if (searchTerm.length || isSearchingForReports) { return; @@ -590,6 +579,8 @@ function MoneyRequestParticipantsSelector({ } footerContent={footerContent} listEmptyContent={EmptySelectionListContentWithPermission} + listHeaderContent={importContactsButtonComponent} + shouldShowSectionTitleEvenWithListHeaderContent headerMessage={header} showLoadingPlaceholder={showLoadingPlaceholder} canSelectMultiple={isIOUSplit && isAllowedToSplit} From 0f73186f18c1473c19aa0a8a6758ab3e509dbf72 Mon Sep 17 00:00:00 2001 From: dmkt9 Date: Wed, 21 Jan 2026 21:41:16 +0700 Subject: [PATCH 8/8] Fix - Contact Import button not clickable due to autoscroll resets the list --- .../BaseSelectionListWithSections.tsx | 4 ++-- src/components/SelectionListWithSections/types.ts | 2 +- src/pages/iou/request/MoneyRequestParticipantsSelector.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/SelectionListWithSections/BaseSelectionListWithSections.tsx b/src/components/SelectionListWithSections/BaseSelectionListWithSections.tsx index 553b467696c7..24020a1e7988 100644 --- a/src/components/SelectionListWithSections/BaseSelectionListWithSections.tsx +++ b/src/components/SelectionListWithSections/BaseSelectionListWithSections.tsx @@ -104,7 +104,7 @@ function BaseSelectionListWithSections({ includeSafeAreaPaddingBottom = true, shouldTextInputInterceptSwipe = false, listHeaderContent, - shouldShowSectionTitleEvenWithListHeaderContent = false, + showSectionTitleWithListHeaderContent = false, onEndReached, onEndReachedThreshold, windowSize = 5, @@ -594,7 +594,7 @@ function BaseSelectionListWithSections({ return ; } - if (!section.title || isEmptyObject(section.data) || (!shouldShowSectionTitleEvenWithListHeaderContent && listHeaderContent)) { + if (!section.title || isEmptyObject(section.data) || (!showSectionTitleWithListHeaderContent && listHeaderContent)) { return null; } diff --git a/src/components/SelectionListWithSections/types.ts b/src/components/SelectionListWithSections/types.ts index 1b5c1ba4ecf1..cab141009bcb 100644 --- a/src/components/SelectionListWithSections/types.ts +++ b/src/components/SelectionListWithSections/types.ts @@ -871,7 +871,7 @@ type SelectionListProps = Partial & { listHeaderContent?: React.JSX.Element | null; /** By default, when `listHeaderContent` is passed, the section title will not be rendered. This flag allows the section title to still be rendered in certain cases. */ - shouldShowSectionTitleEvenWithListHeaderContent?: boolean; + showSectionTitleWithListHeaderContent?: boolean; /** Custom content to display in the footer */ footerContent?: ReactNode; diff --git a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx index 76ecf5293a8e..83fc46c0e8a6 100644 --- a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx +++ b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx @@ -580,7 +580,7 @@ function MoneyRequestParticipantsSelector({ footerContent={footerContent} listEmptyContent={EmptySelectionListContentWithPermission} listHeaderContent={importContactsButtonComponent} - shouldShowSectionTitleEvenWithListHeaderContent + showSectionTitleWithListHeaderContent headerMessage={header} showLoadingPlaceholder={showLoadingPlaceholder} canSelectMultiple={isIOUSplit && isAllowedToSplit}