idgf
This commit is contained in:
parent
fbfebc651c
commit
aab85fe32e
33 changed files with 2016 additions and 283 deletions
|
|
@ -244,10 +244,7 @@ function legacyCombineResults(json: PlacesApiResponse, trimmed: string): SearchR
|
|||
|
||||
export type ViewportCenter = { lat: number; lng: number };
|
||||
|
||||
export function useLocationSearch(
|
||||
mode?: string,
|
||||
getViewportCenter?: () => ViewportCenter | null
|
||||
) {
|
||||
export function useLocationSearch(mode?: string, getViewportCenter?: () => ViewportCenter | null) {
|
||||
const [query, setQuery] = useState('');
|
||||
const [results, setResults] = useState<SearchResult[]>([]);
|
||||
const [recentSearches, setRecentSearches] = useState<SearchResult[]>(readRecentSearches);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue