From 00a0b23f0e200181dfc4f781a1ff8303c5a6a178 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Fri, 23 Aug 2024 12:17:01 -0400 Subject: [PATCH 1/3] add filters button --- src/components/ButtonWithDropdownMenu/index.tsx | 1 + src/components/Search/SearchPageHeader.tsx | 6 ++++++ src/pages/Search/SearchStatusMenuNarrow.tsx | 11 ++++++++--- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/ButtonWithDropdownMenu/index.tsx b/src/components/ButtonWithDropdownMenu/index.tsx index 943d6dbb5c16..4320f9118f98 100644 --- a/src/components/ButtonWithDropdownMenu/index.tsx +++ b/src/components/ButtonWithDropdownMenu/index.tsx @@ -154,6 +154,7 @@ function ButtonWithDropdownMenu({ style={[styles.w100, style]} isLoading={isLoading} text={selectedItem.text} + icon={selectedItem.icon} onPress={(event) => onPress(event, options[0].value)} large={isButtonSizeLarge} medium={!isButtonSizeLarge} diff --git a/src/components/Search/SearchPageHeader.tsx b/src/components/Search/SearchPageHeader.tsx index bae08155c262..f6a07a0c62d0 100644 --- a/src/components/Search/SearchPageHeader.tsx +++ b/src/components/Search/SearchPageHeader.tsx @@ -2,6 +2,7 @@ import React, {useMemo} from 'react'; import type {StyleProp, TextStyle} from 'react-native'; import {View} from 'react-native'; import {useOnyx} from 'react-native-onyx'; +import Button from '@components/Button'; import ButtonWithDropdownMenu from '@components/ButtonWithDropdownMenu'; import type {DropdownOption} from '@components/ButtonWithDropdownMenu/types'; import Header from '@components/Header'; @@ -301,6 +302,11 @@ function SearchPageHeader({queryJSON, hash, onSelectDeleteOption, setOfflineModa style={styles.ml2} /> )} +