From 0d7e674f2aa13d7b52a7b43b9ad74a3d034da9d6 Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 13 Sep 2023 17:27:02 +0300 Subject: [PATCH] =?UTF-8?q?eat:=20add=20search=20button=20with=20SVG=20ico?= =?UTF-8?q?n=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a search button with an SVG icon to the UI. The icon is a magnifying glass, and it changes to a different color when the button is hovered over. --- .../(HeroSearchFormSmall)/ButtonSubmit.tsx | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/app/(client-components)/(HeroSearchFormSmall)/ButtonSubmit.tsx diff --git a/src/app/(client-components)/(HeroSearchFormSmall)/ButtonSubmit.tsx b/src/app/(client-components)/(HeroSearchFormSmall)/ButtonSubmit.tsx new file mode 100644 index 0000000..5911046 --- /dev/null +++ b/src/app/(client-components)/(HeroSearchFormSmall)/ButtonSubmit.tsx @@ -0,0 +1,44 @@ +"use client"; + +import React, { FC } from "react"; +import { PathName } from "@/routers/types"; +import Link from "next/link"; + +interface Props { + className?: string; + href: PathName; +} + +const ButtonSubmit: FC = ({ + className = "", + href = "/listing-stay-map", +}) => { + return ( + { + (document.querySelector(".nc-Footer") as HTMLElement | null)?.click(); + }} + > + Search + + + + + ); +}; + +export default ButtonSubmit;