From 6dff844e78c0f31ac0eb527ae794c60b17351fed Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 26 Nov 2024 10:14:01 +0800 Subject: [PATCH] make the whole search menu scrollable --- src/pages/Search/SearchTypeMenu.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/pages/Search/SearchTypeMenu.tsx b/src/pages/Search/SearchTypeMenu.tsx index 6d74ccb46e21..6658e05c298d 100644 --- a/src/pages/Search/SearchTypeMenu.tsx +++ b/src/pages/Search/SearchTypeMenu.tsx @@ -244,7 +244,10 @@ function SearchTypeMenu({queryJSON, searchName}: SearchTypeMenuProps) { const shouldShowSavedSearchesMenuItemTitle = Object.values(savedSearches ?? {}).filter((s) => s.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || isOffline).length > 0; return ( - <> + {typeMenuItems.map((item, index) => { const onPress = singleExecution(() => { @@ -272,16 +275,11 @@ function SearchTypeMenu({queryJSON, searchName}: SearchTypeMenuProps) { {shouldShowSavedSearchesMenuItemTitle && ( <> {translate('search.savedSearchesMenuItemTitle')} - - {renderSavedSearchesSection(savedSearchesMenuItems())} - + {renderSavedSearchesSection(savedSearchesMenuItems())} )} - + ); }