This commit is contained in:
zmeyer44 2023-10-23 14:48:09 -04:00
parent 65de87d9cb
commit b6a0579de7

View File

@ -73,13 +73,13 @@ function CommandSearch() {
</PopoverTrigger> </PopoverTrigger>
<PopoverContent className="z-modal+ w-auto p-0" align="start"> <PopoverContent className="z-modal+ w-auto p-0" align="start">
<Command className="rounded-lg border shadow-md"> <Command className="rounded-lg border shadow-md">
<CommandInput <CommandInput disabled={!ready} placeholder="Search places..." />
disabled={!ready} <Input
onChangeCapture={(e) => className="border-0 px-0 shadow-none focus-visible:ring-0"
setValue((e.target as unknown as { value: string }).value)
}
value={value} value={value}
onChange={(e) => setValue(e.target.value)}
placeholder="Search places..." placeholder="Search places..."
disabled={!ready}
/> />
<CommandList> <CommandList>
<CommandEmpty>No results found.</CommandEmpty> <CommandEmpty>No results found.</CommandEmpty>
@ -98,7 +98,7 @@ function CommandSearch() {
), ),
)} )}
</CommandGroup> </CommandGroup>
{/* <CommandSeparator /> <CommandSeparator />
<CommandGroup heading="Vitrual"> <CommandGroup heading="Vitrual">
<CommandItem> <CommandItem>
<HiOutlineBuildingStorefront className="mr-2 h-4 w-4" /> <HiOutlineBuildingStorefront className="mr-2 h-4 w-4" />
@ -112,7 +112,7 @@ function CommandSearch() {
<HiOutlineBuildingStorefront className="mr-2 h-4 w-4" /> <HiOutlineBuildingStorefront className="mr-2 h-4 w-4" />
<span>Settings</span> <span>Settings</span>
</CommandItem> </CommandItem>
</CommandGroup> */} </CommandGroup>
</CommandList> </CommandList>
</Command> </Command>
</PopoverContent> </PopoverContent>