From 7251656befe3204d83f8c7997fa029b217843c3e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 22 Dec 2023 04:11:03 -0500 Subject: [PATCH] refactor: property show site list --- app/components/SearchBar.tsx | 5 +++-- app/components/SitesCombobox.tsx | 27 +++++++++++++++++---------- app/routes/_index.tsx | 11 ++++++++--- app/types.d.ts | 7 +++++++ app/utils.ts | 32 ++++++-------------------------- bridge.mts | 12 ++---------- 6 files changed, 43 insertions(+), 51 deletions(-) diff --git a/app/components/SearchBar.tsx b/app/components/SearchBar.tsx index bc2a715..10aa413 100644 --- a/app/components/SearchBar.tsx +++ b/app/components/SearchBar.tsx @@ -25,10 +25,11 @@ import { SelectValue, } from "./ui/select"; import { SitesCombobox } from "./SitesCombobox"; +import { SearchResult, SiteList } from "@/types.js"; type Props = {}; -const SearchBar = () => { +const SearchBar = ({ sites }: { sites: SiteList }) => { let navigate = useNavigate(); let { pathname } = useLocation(); let [searchParams] = useSearchParams(); @@ -149,7 +150,7 @@ const SearchBar = () => { ) : (
{/* Dropdown component should be here */} - + {/* Dropdown component should be here */}