linter fixes
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user