From ee24d820c8d6846e77be2ff80f72d9dbee84bb96 Mon Sep 17 00:00:00 2001 From: Arthur Geron <3487334+arthurgeron@users.noreply.github.com> Date: Mon, 16 Sep 2024 21:58:51 -0300 Subject: [PATCH] chore: remove expandOnFocus prop --- .../systems/Core/components/Search/SearchForm.tsx | 8 +------- .../systems/Core/components/Search/SearchWidget.tsx | 12 ++---------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/packages/app-explorer/src/systems/Core/components/Search/SearchForm.tsx b/packages/app-explorer/src/systems/Core/components/Search/SearchForm.tsx index bb0c7b98..f74c660d 100644 --- a/packages/app-explorer/src/systems/Core/components/Search/SearchForm.tsx +++ b/packages/app-explorer/src/systems/Core/components/Search/SearchForm.tsx @@ -8,14 +8,9 @@ import { styles } from './styles'; type SearchFormProps = { className: string; autoFocus?: boolean; - expandOnFocus?: boolean; }; -export function SearchForm({ - className, - autoFocus, - expandOnFocus, -}: SearchFormProps) { +export function SearchForm({ className, autoFocus }: SearchFormProps) { const classes = styles(); const [results, action] = useFormState( (_: GQLSearchResult | null, formData: FormData) => { @@ -30,7 +25,6 @@ export function SearchForm({ className={className} searchResult={results} autoFocus={autoFocus} - expandOnFocus={expandOnFocus} /> ); diff --git a/packages/app-explorer/src/systems/Core/components/Search/SearchWidget.tsx b/packages/app-explorer/src/systems/Core/components/Search/SearchWidget.tsx index 37be5404..144a01d8 100644 --- a/packages/app-explorer/src/systems/Core/components/Search/SearchWidget.tsx +++ b/packages/app-explorer/src/systems/Core/components/Search/SearchWidget.tsx @@ -12,24 +12,16 @@ export const SearchContext = createContext<{ type SearchWidgetProps = { autoFocus?: boolean; - expandOnFocus?: boolean; }; -export const SearchWidget = ({ - autoFocus, - expandOnFocus, -}: SearchWidgetProps) => { +export const SearchWidget = ({ autoFocus }: SearchWidgetProps) => { const classes = styles(); const dropdownRef = useRef(null); return ( - + );