vibes
This commit is contained in:
parent
c997ea46a5
commit
30055ab870
13 changed files with 165 additions and 83 deletions
|
|
@ -9,7 +9,7 @@ import { CloseIcon } from './icons/CloseIcon';
|
|||
interface DestinationDropdownProps {
|
||||
destinations: Destination[];
|
||||
loading: boolean;
|
||||
onSelect: (slug: string, label: string) => void;
|
||||
onSelect: (slug: string, label: string, lat: number, lon: number) => void;
|
||||
onClear?: () => void;
|
||||
value?: string;
|
||||
placeholder?: string;
|
||||
|
|
@ -66,7 +66,7 @@ export function DestinationDropdown({
|
|||
|
||||
const handleSelect = useCallback(
|
||||
(dest: Destination) => {
|
||||
onSelect(dest.slug, dest.name);
|
||||
onSelect(dest.slug, dest.name, dest.lat, dest.lon);
|
||||
setOpen(false);
|
||||
setFilter('');
|
||||
setActiveIndex(-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue