Route partnership CTA to the store account and polish search modal.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
fa248d2f6a
commit
f44058bd6e
@@ -172,7 +172,6 @@ export default async function CategoryPage({ params, searchParams }: PageProps)
|
||||
products,
|
||||
query.page,
|
||||
);
|
||||
const hasExtraFilters = Boolean(query.q || query.min || query.max);
|
||||
|
||||
return (
|
||||
<main className="home-page min-h-dvh bg-white text-ink">
|
||||
@@ -202,18 +201,7 @@ export default async function CategoryPage({ params, searchParams }: PageProps)
|
||||
/>
|
||||
<div className="space-y-3 sm:space-y-4">
|
||||
{total === 0 ? (
|
||||
<ProductEmptyState
|
||||
title={
|
||||
hasExtraFilters
|
||||
? "محصولی با این فیلترها پیدا نشد"
|
||||
: `محصولی در «${resolved.nameFa}» نیست`
|
||||
}
|
||||
description={
|
||||
hasExtraFilters
|
||||
? "فیلترها را تغییر دهید یا همه را پاک کنید تا محصولات بیشتری ببینید."
|
||||
: "بهزودی محصولات این دسته اضافه میشوند."
|
||||
}
|
||||
/>
|
||||
<ProductEmptyState />
|
||||
) : (
|
||||
<>
|
||||
<ProductGrid products={pageItems} />
|
||||
|
||||
Reference in New Issue
Block a user