From 369996ff2cf9886973215d775a3000552a1c8e79 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 22 Dec 2023 04:42:21 -0500 Subject: [PATCH] fix: get search results working --- app/components/SimplifiedSearchBar.tsx | 5 ++++- app/components/SitesCombobox.tsx | 1 - app/routes/search.tsx | 27 +++++++++++++++++++++----- remix.config.js | 1 + 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/app/components/SimplifiedSearchBar.tsx b/app/components/SimplifiedSearchBar.tsx index f4c3b4e..bfd9888 100644 --- a/app/components/SimplifiedSearchBar.tsx +++ b/app/components/SimplifiedSearchBar.tsx @@ -9,6 +9,7 @@ import { } from "./ui/select"; import { SitesCombobox } from "./SitesCombobox"; import { FILTER_TIMES } from "@/utils"; +import { SiteList } from "@/types.js"; type Props = { value: string; @@ -17,6 +18,7 @@ type Props = { filters?: { sites: { value: string; label: string }[]; }; + sites: SiteList; }; const SimplifiedSearchBar = ({ @@ -24,6 +26,7 @@ const SimplifiedSearchBar = ({ placeholder, filters, className, + sites, }: Props) => { let navigate = useNavigate(); let location = useLocation(); @@ -69,7 +72,7 @@ const SimplifiedSearchBar = ({
{/* Dropdown component should be here */} - + {/* Dropdown component should be here */}