File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
app/src/containers/locations Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { useEffect, useRef } from "react";
55import { useQuery } from "@tanstack/react-query" ;
66import { CommandInput } from "cmdk" ;
77import { useAtom , useSetAtom } from "jotai" ;
8- import { LucideXCircle } from "lucide-react" ;
8+ import { LucideXCircle , SearchIcon } from "lucide-react" ;
99import { useLocale , useTranslations } from "next-intl" ;
1010import { LuMapPin , LuSearch } from "react-icons/lu" ;
1111
@@ -141,6 +141,12 @@ export const LocationsSearch = () => {
141141 </ button >
142142 ) }
143143
144+ { ! locations . enabled && (
145+ < button type = "button" className = "cursor-pointer" onClick = { ( ) => inputRef . current ?. focus ( ) } >
146+ < SearchIcon className = "mr-4 h-6 w-6 text-current" />
147+ </ button >
148+ ) }
149+
144150 { ! locations . enabled && locationsIdData && locationsIdData ?. type !== "global" && (
145151 < Tooltip >
146152 < TooltipTrigger asChild >
You can’t perform that action at this time.
0 commit comments