diff --git a/app/pages/Search.tsx b/app/pages/Search.tsx index 14c371c..fa3db4c 100644 --- a/app/pages/Search.tsx +++ b/app/pages/Search.tsx @@ -8,7 +8,7 @@ import { useScrollPosition } from "#/hooks/useScrollPosition"; import { useRouter } from "next/navigation"; import { useSearchParams } from "next/navigation"; import { useUserStore } from "../store/auth"; -import { Button } from "flowbite-react"; +import { Button, Modal } from "flowbite-react"; const fetcher = async (url: string) => { const res = await fetch(url); @@ -34,6 +34,7 @@ export function SearchPage() { searchParams.get("searchBy") || null ); const [list, setList] = useState(searchParams.get("list") || null); + const [filtersModalOpen, setFiltersModalOpen] = useState(false); const token = useUserStore((state) => state.token); @@ -120,9 +121,9 @@ export function SearchPage() { return ( <> -
+
{ e.preventDefault(); _executeSearch(searchVal.trim()); @@ -169,6 +170,7 @@ export function SearchPage() {
+
{data && data[0].related && } @@ -213,6 +215,20 @@ export function SearchPage() { ) : ( "" )} + ); } + +const FiltersModal = (props: {isOpen: boolean; setIsOpen: any}) => { + return ( + props.setIsOpen(false)} + size={"7xl"} + > + Фильтры + + ); +};