linter fixes

This commit is contained in:
2025-05-27 15:07:33 +03:00
parent b30796ae4b
commit 85349bf961
16 changed files with 991 additions and 1295 deletions

View File

@@ -1,8 +1,6 @@
import React from 'react'
import type { Metadata } from 'next'
import SearchCard from '../../components/SearchCard'
import { SearchCardProps, RouteSearchPageProps } from '@/app/types'
import SearchFilters from '../../components/SearchFilters'
import { RouteSearchPageProps } from '@/app/types'
import ClientResults from '../../components/ClientResults'
async function fetchSearch(category: string, from: string, to: string) {

View File

@@ -4,6 +4,7 @@ import SearchCard from '../components/SearchCard'
import { SearchCardProps, SearchPageProps } from '@/app/types'
import { fetchRoutes } from '@/lib/search/fetchRoutes'
import SearchFilters from '../components/SearchFilters'
import AddressSelector from '@/components/AddressSelector'
export async function generateMetadata(): Promise<Metadata> {
return {
@@ -56,8 +57,11 @@ export default async function SearchPage(props: SearchPageProps) {
return (
<div className="container mx-auto p-4">
<h1 className="mb-4 text-2xl font-bold">
{params.category === 'mover' ? 'Поиск перевозчика' : 'Поиск посылки'}
{params.category === 'mover'
? 'Поиск перевозчика - все предложения'
: 'Поиск посылки - все предложения'}
</h1>
<AddressSelector is_search={true} />
<SearchFilters />
<Suspense fallback={<div>Загрузка результатов...</div>}>
<div className="space-y-4">