mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 05:31:13 -05:00
Merge branch 'main' of https://github.com/pacnpal/thrilltrack-explorer
This commit is contained in:
@@ -33,14 +33,7 @@ export function HeroSearch() {
|
||||
];
|
||||
|
||||
const handleSearch = () => {
|
||||
if (!searchTerm.trim()) return;
|
||||
|
||||
const params = new URLSearchParams();
|
||||
params.set('q', searchTerm);
|
||||
if (selectedType !== 'all') params.set('type', selectedType);
|
||||
if (selectedCountry !== 'all') params.set('country', selectedCountry);
|
||||
|
||||
navigate(`/search?${params.toString()}`);
|
||||
// Search functionality handled by AutocompleteSearch component in Header
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user