diff --git a/src/screens/Search/components/AdvancedSearchDialog/FromDropdown.tsx b/src/screens/Search/components/AdvancedSearchDialog/FromDropdown.tsx index ee7e0a8c01..abcaf59285 100644 --- a/src/screens/Search/components/AdvancedSearchDialog/FromDropdown.tsx +++ b/src/screens/Search/components/AdvancedSearchDialog/FromDropdown.tsx @@ -1,4 +1,4 @@ -import {Trans, useLingui} from '@lingui/react/macro' +import {useLingui} from '@lingui/react/macro' import {platform} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' @@ -19,11 +19,12 @@ export function FromDropdown({ const {t: l} = useLingui() const options: {value: FromFilter; label: string}[] = [ - {value: 'anyone', label: l`Anyone`}, + {value: 'anyone', label: l`No author filter`}, {value: 'following', label: l`People I follow`}, {value: 'me', label: l`Me`}, ] - const currentLabel = options.find(o => o.value === value)?.label ?? l`Anyone` + const currentLabel = + options.find(o => o.value === value)?.label ?? l`No author filter` return ( @@ -45,19 +46,25 @@ export function FromDropdown({ )} - - Filter by author - + onChange(options[0].value)}> + {options[0].label} + + + - {options.map(option => ( - onChange(option.value)}> - {option.label} - - - ))} + {options.map((option, index) => + index === 0 ? null : ( + onChange(option.value)}> + {option.label} + + + ), + )} diff --git a/src/screens/Search/components/AdvancedSearchDialog/MediaDropdown.tsx b/src/screens/Search/components/AdvancedSearchDialog/MediaDropdown.tsx index 1f4c424c8a..9fed05152f 100644 --- a/src/screens/Search/components/AdvancedSearchDialog/MediaDropdown.tsx +++ b/src/screens/Search/components/AdvancedSearchDialog/MediaDropdown.tsx @@ -1,4 +1,4 @@ -import {Trans, useLingui} from '@lingui/react/macro' +import {useLingui} from '@lingui/react/macro' import {platform} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' @@ -19,16 +19,17 @@ export function MediaDropdown({ const {t: l} = useLingui() const options: {value: MediaFilter; label: string}[] = [ - {value: 'all', label: l`All posts`}, + {value: 'all', label: l`No media filter`}, {value: 'media', label: l`Only posts with media`}, {value: 'video', label: l`Only posts with videos`}, ] const currentLabel = - options.find(o => o.value === value)?.label ?? l`All posts` + options.find(o => o.value === value)?.label ?? l`No media filter` return ( - + {({props}) => (