Skip to content

Commit cd05b52

Browse files
authored
fe: add search icon for locations search (#119)
1 parent 0bb3712 commit cd05b52

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/src/containers/locations/search.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useEffect, useRef } from "react";
55
import { useQuery } from "@tanstack/react-query";
66
import { CommandInput } from "cmdk";
77
import { useAtom, useSetAtom } from "jotai";
8-
import { LucideXCircle } from "lucide-react";
8+
import { LucideXCircle, SearchIcon } from "lucide-react";
99
import { useLocale, useTranslations } from "next-intl";
1010
import { 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>

0 commit comments

Comments
 (0)