diff --git a/frontend/app/(urls)/search/[category]/page.tsx b/frontend/app/(urls)/search/[category]/page.tsx index 7566788..57b27b4 100644 --- a/frontend/app/(urls)/search/[category]/page.tsx +++ b/frontend/app/(urls)/search/[category]/page.tsx @@ -1,10 +1,9 @@ import React, { Suspense } from 'react' import type { Metadata } from 'next' -import SearchCard from '../components/SearchCard' -import { SearchCardProps, SearchPageProps } from '@/app/types' +import { SearchPageProps } from '@/app/types' import { fetchRoutes } from '@/lib/search/fetchRoutes' -import SearchFilters from '../components/SearchFilters' import AddressSelector from '@/components/AddressSelector' +import ClientResults from '../components/ClientResults' export async function generateMetadata(): Promise { return { @@ -62,15 +61,9 @@ export default async function SearchPage(props: SearchPageProps) { : 'Поиск посылки - все предложения'} - + Загрузка результатов...}> -
- {results.length > 0 ? ( - results.map((item: SearchCardProps) => ) - ) : ( -
Объявления не найдены
- )} -
+
)