this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Always show search options (#5706)

authored by

Paul Frazee and committed by
GitHub
9a769b9a 7677bb3f

+1 -24
+1 -24
src/view/screens/Search/Search.tsx
··· 65 65 import {SearchInput} from '#/components/forms/SearchInput' 66 66 import {ChevronBottom_Stroke2_Corner0_Rounded as ChevronDown} from '#/components/icons/Chevron' 67 67 import {Menu_Stroke2_Corner0_Rounded as Menu} from '#/components/icons/Menu' 68 - import {SettingsGear2_Stroke2_Corner0_Rounded as Gear} from '#/components/icons/SettingsGear2' 69 68 70 69 function Loader() { 71 70 const pal = usePalette('default') ··· 626 625 const {params, query, queryWithParams} = useQueryManager({ 627 626 initialQuery: queryParam, 628 627 }) 629 - const showFiltersButton = Boolean(query && !showAutocomplete) 630 - const [showFilters, setShowFilters] = React.useState(false) 628 + const showFilters = Boolean(query && !showAutocomplete) 631 629 /* 632 630 * Arbitrary sizing, so guess and check, used for sticky header alignment and 633 631 * sizing. ··· 788 786 setSearchText('') 789 787 navigation.setParams({q: ''}) 790 788 } 791 - setShowFilters(false) 792 789 }, [navigation]) 793 790 794 791 useFocusEffect( ··· 838 835 } else { 839 836 setShowAutocomplete(true) 840 837 } 841 - setShowFilters(false) 842 838 }, [setShowAutocomplete]) 843 839 844 840 return ( ··· 882 878 onSubmitEditing={onSubmit} 883 879 /> 884 880 </View> 885 - {showFiltersButton && ( 886 - <Button 887 - onPress={() => setShowFilters(!showFilters)} 888 - hitSlop={HITSLOP_10} 889 - label={_(msg`Show advanced filters`)} 890 - size="large" 891 - variant="solid" 892 - color="secondary" 893 - shape="square"> 894 - <Gear 895 - size="md" 896 - fill={ 897 - showFilters 898 - ? t.palette.primary_500 899 - : t.atoms.text_contrast_medium.color 900 - } 901 - /> 902 - </Button> 903 - )} 904 881 {showAutocomplete && ( 905 882 <Button 906 883 label={_(msg`Cancel search`)}