@@ -56,7 +60,11 @@ export const DropdownComponentSearch = (props: DropdownComponentProps) => {
className="block h-full w-full appearance-none overflow-ellipsis rounded-xl border-4 border-black px-4 pr-12 text-lg opacity-40 outline-none focus:border-primary focus:opacity-80 md:pr-16 md:text-2xl"
>
{data.map((item) => (
-
diff --git a/components/hero/hero.tsx b/components/hero/hero.tsx
index 95cd26e..256617f 100644
--- a/components/hero/hero.tsx
+++ b/components/hero/hero.tsx
@@ -5,6 +5,7 @@ import React, { ChangeEvent, FormEvent, useState } from "react";
import { FaChevronDown, FaSearch } from "react-icons/fa";
import { useRouter } from "next/navigation";
import { analyticsEnum, logAnalytics } from "@/lib/analytics";
+import { DropdownComponentHero } from "../DropdownComponent";
interface DropdownComponentProps {
defaultValue: string;
@@ -12,36 +13,6 @@ interface DropdownComponentProps {
onChange: (value: string) => void;
}
-const DropdownComponent = (props: DropdownComponentProps) => {
- const { defaultValue, data, onChange } = props;
-
- const [value, setValue] = useState(defaultValue);
-
- const handleChange = (e: ChangeEvent
) => {
- onChange(e.target.value);
- setValue(e.target.value);
- };
-
- return (
-
-
-
-
-
-
-
-
- );
-};
-
const Hero = () => {
const router = useRouter();
@@ -101,12 +72,12 @@ const Hero = () => {