Skip to content

Commit

Permalink
Reverted searchable dropdowns due to build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
calvadev committed Sep 18, 2024
1 parent e4f5b7c commit 8c510ba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
11 changes: 0 additions & 11 deletions components/home/marketplace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
)
}
>
<SelectSection className="text-light-text dark:text-dark-text">
{CATEGORIES.map((category) => (
Expand Down
11 changes: 1 addition & 10 deletions components/utility-components/dropdowns/country-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,7 @@ const CountryDropdown = ({ value, ...props }: { [x: string]: any }) => {
}, []);

return (
<Select
{...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()),
)
}
>
<Select {...props} className="mt-2 text-light-text dark:text-dark-text">
{countryOptions}
</Select>
);
Expand Down
6 changes: 0 additions & 6 deletions components/utility-components/dropdowns/location-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
</Select>
Expand Down

0 comments on commit 8c510ba

Please sign in to comment.