From 8c510bafa4404e3f31d3347631215dfb368dc95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?calvadev=E2=9A=A1=EF=B8=8F?= <32919103+calvadev@users.noreply.github.com> Date: Wed, 18 Sep 2024 06:26:06 +0000 Subject: [PATCH] Reverted searchable dropdowns due to build issue --- components/home/marketplace.tsx | 11 ----------- .../utility-components/dropdowns/country-dropdown.tsx | 11 +---------- .../dropdowns/location-dropdown.tsx | 6 ------ 3 files changed, 1 insertion(+), 27 deletions(-) diff --git a/components/home/marketplace.tsx b/components/home/marketplace.tsx index 34f8666..fa8b98f 100644 --- a/components/home/marketplace.tsx +++ b/components/home/marketplace.tsx @@ -186,17 +186,6 @@ export function MarketplacePage({ } }} selectionMode="multiple" - isSearchable={true} // Add this line - filterOptions={( - options, - search, // Add this function - ) => - options.filter((option) => - option.children - .toLowerCase() - .includes(search.toLowerCase()), - ) - } > {CATEGORIES.map((category) => ( diff --git a/components/utility-components/dropdowns/country-dropdown.tsx b/components/utility-components/dropdowns/country-dropdown.tsx index a108a52..3389011 100644 --- a/components/utility-components/dropdowns/country-dropdown.tsx +++ b/components/utility-components/dropdowns/country-dropdown.tsx @@ -34,16 +34,7 @@ const CountryDropdown = ({ value, ...props }: { [x: string]: any }) => { }, []); return ( - {countryOptions} ); diff --git a/components/utility-components/dropdowns/location-dropdown.tsx b/components/utility-components/dropdowns/location-dropdown.tsx index ef405ce..945a82f 100644 --- a/components/utility-components/dropdowns/location-dropdown.tsx +++ b/components/utility-components/dropdowns/location-dropdown.tsx @@ -123,12 +123,6 @@ const LocationDropdown = ({ value, ...props }: { [x: string]: any }) => { startContent={locationAvatar(value)} {...props} className="mt-2 text-light-text dark:text-dark-text" - isSearchable={true} - filterOptions={(options, search) => - options.filter((option) => - option.children.toLowerCase().includes(search.toLowerCase()), - ) - } > {locationOptions}