From 53d9db174c78471ad583b45fa59cc48625244be6 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Wed, 8 Jul 2026 07:25:41 -0700 Subject: [PATCH] Revert "Add more search placeholders (#11089)" (#11101) --- .../components/AdvancedSearchDialog/index.tsx | 116 ++---------------- 1 file changed, 10 insertions(+), 106 deletions(-) diff --git a/src/screens/Search/components/AdvancedSearchDialog/index.tsx b/src/screens/Search/components/AdvancedSearchDialog/index.tsx index 07b009ced6..4bb1fb52cc 100644 --- a/src/screens/Search/components/AdvancedSearchDialog/index.tsx +++ b/src/screens/Search/components/AdvancedSearchDialog/index.tsx @@ -154,110 +154,6 @@ function DialogInner({ const scrollRef = useRef(null) const filtersSectionRef = useRef(null) - const suggestions = [ - { - all: l({ - message: 'cats dogs', - comment: - 'Advanced search: Example of an “all of these words” search. Paired with “cows pigs”.', - }), - none: l({ - message: 'cows pigs', - comment: - 'Advanced search: Example of a “none of these words” search. Paired with “cats dogs”.', - }), - }, - { - all: l({ - message: 'mustangs broncos', - comment: - 'Advanced search: Example of an “all of these words” search. Paired with “cars trucks”.', - }), - none: l({ - message: 'cars trucks', - comment: - 'Advanced search: Example of a “none of these words” search. Paired with “mustangs broncos”.', - }), - }, - { - all: l({ - message: 'spring summer', - comment: - 'Advanced search: Example of an “all of these words” search. Paired with “fall winter”.', - }), - none: l({ - message: 'fall winter', - comment: - 'Advanced search: Example of a “none of these words” search. Paired with “spring summer”.', - }), - }, - { - all: l({ - message: 'allegro vivace', - comment: - 'Advanced search: Example of an “all of these words” search. Paired with “lento adagio”.', - }), - none: l({ - message: 'lento adagio', - comment: - 'Advanced search: Example of a “none of these words” search. Paired with “allegro vivace”.', - }), - }, - { - all: l({ - message: 'spaniels terriers', - comment: - 'Advanced search: Example of an “all of these words” search. Paired with “dachshunds pugs”.', - }), - none: l({ - message: 'dachshunds pugs', - comment: - 'Advanced search: Example of a “none of these words” search. Paired with “spaniels terriers”.', - }), - }, - { - all: l({ - message: 'blue black', - comment: - 'Advanced search: Example of an “all of these words” search. Paired with “white gold”.', - }), - none: l({ - message: 'white gold', - comment: - 'Advanced search: Example of a “none of these words” search. Paired with “blue black”.', - }), - }, - { - all: l({ - message: 'unstoppable force', - comment: - 'Advanced search: Example of an “all of these words” search. Paired with “immovable object”.', - }), - none: l({ - message: 'immovable object', - comment: - 'Advanced search: Example of a “none of these words” search. Paired with “unstoppable force”.', - }), - }, - { - all: l({ - message: 'parsley sage', - comment: - 'Advanced search: Example of an “all of these words” search. Paired with “rosemary thyme”.', - }), - none: l({ - message: 'rosemary thyme', - comment: - 'Advanced search: Example of a “none of these words” search. Paired with “parsley sage”.', - }), - }, - ] - - // eslint-disable-next-line react/hook-use-state - const [suggestion] = useState(() => - Math.floor(Math.random() * suggestions.length), - ) - function addFilter() { if (filters.length >= MAX_FILTERS) return /* @@ -365,7 +261,11 @@ function DialogInner({ @@ -395,7 +295,11 @@ function DialogInner({