diff --git a/components/LocationSearch/index.tsx b/components/LocationSearch/index.tsx
index 65bc33b..f351f05 100644
--- a/components/LocationSearch/index.tsx
+++ b/components/LocationSearch/index.tsx
@@ -42,7 +42,18 @@ export default function LocationSearchInput() {
return
hello{JSON.stringify(loadError)}
;
}
if (!isLoaded) {
- return Loading...
;
+ return (
+
+ );
}
return ;
}
@@ -71,7 +82,10 @@ function CommandSearch() {
Add a location...
-
+
- {data.map(
- ({
+ {data.map((place) => {
+ const {
description,
place_id,
structured_formatting: { main_text, secondary_text },
- }) => (
+ } = place;
+ return (
- console.log()}
className={cn(
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 hover:bg-muted",
)}
>
- {main_text}
- {description}
+
+
{main_text}
+
+ {secondary_text}
+
+
- ),
- )}
+ );
+ })}