Skip to content

Commit

Permalink
Merge pull request #49583 from mkzie2/fix/49442
Browse files Browse the repository at this point in the history
Remove viewing search query in the list and add bookmark icon for mobile
  • Loading branch information
luacmartins authored Sep 26, 2024
2 parents b6db72d + 8dfea8e commit 21e519c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Search/SearchTypeMenuNarrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title,
};
});

if (title) {
if (title && !currentSavedSearch) {
items.push({
text: title,
onSelected: closeMenu,
Expand All @@ -109,6 +109,8 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title,
text: item.title ?? '',
styles: [styles.textSupporting],
onSelected: item.onPress,
icon: Expensicons.Bookmark,
iconFill: currentSavedSearch?.hash === item.hash ? theme.iconSuccessFill : theme.icon,
shouldShowRightComponent: true,
rightComponent: (
<ThreeDotsMenu
Expand Down

0 comments on commit 21e519c

Please sign in to comment.