|
|
@ -23,7 +23,7 @@ export default function LocationTypeahead({
|
|
|
|
}: LocationTypeaheadProps) {
|
|
|
|
}: LocationTypeaheadProps) {
|
|
|
|
const [query, setQuery] = useState('');
|
|
|
|
const [query, setQuery] = useState('');
|
|
|
|
|
|
|
|
|
|
|
|
const { data: locations } = trpc.useQuery([
|
|
|
|
const { data: locations, isLoading } = trpc.useQuery([
|
|
|
|
'locations.cities.list',
|
|
|
|
'locations.cities.list',
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: query,
|
|
|
|
name: query,
|
|
|
@ -45,6 +45,7 @@ export default function LocationTypeahead({
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<ExpandedTypeahead
|
|
|
|
<ExpandedTypeahead
|
|
|
|
|
|
|
|
isLoading={isLoading}
|
|
|
|
{...({
|
|
|
|
{...({
|
|
|
|
onSuggestionClick: onSuggestionClick
|
|
|
|
onSuggestionClick: onSuggestionClick
|
|
|
|
? (option: TypeaheadOption) => {
|
|
|
|
? (option: TypeaheadOption) => {
|
|
|
|