clear filter
This commit is contained in:
@@ -224,7 +224,7 @@ export default function Filter() {
|
||||
</div>
|
||||
|
||||
{/* Bo'lim filtri check */}
|
||||
{visibleSectionData && visibleSectionData.length > 0 && (
|
||||
{/*{visibleSectionData && visibleSectionData.length > 0 && (
|
||||
<div className="bg-gray-500 rounded-lg w-full">
|
||||
<p className="bg-red-500 text-white p-2 font-semibold font-almarai text-lg rounded-t-lg">
|
||||
{t("section")}
|
||||
@@ -259,7 +259,7 @@ export default function Filter() {
|
||||
{dataExpanded ? t("hide") : t("show_more")}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
)}*/}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ export default function MainProduct() {
|
||||
<div className="space-y-4">
|
||||
{/* ✅ isLoading da overlay — list o'rnini saqlab, ustidan opacity */}
|
||||
<div
|
||||
className={`grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-5 transition-opacity ${isLoading ? "opacity-50 pointer-events-none" : "opacity-100"}`}
|
||||
className={`grid lg:grid-cols-4 sm:grid-cols-2 grid-cols-1 gap-5 transition-opacity ${isLoading ? "opacity-50 pointer-events-none" : "opacity-100"}`}
|
||||
>
|
||||
{results.map((item: any) => (
|
||||
<ProductCard
|
||||
|
||||
@@ -8,7 +8,7 @@ export function Products() {
|
||||
<div className="max-w-300 mx-auto w-full z-20 relative">
|
||||
<div className="flex lg:flex-row flex-col lg:items-start items-center gap-5">
|
||||
{/* filter part */}
|
||||
<Filter />
|
||||
{/*<Filter />*/}
|
||||
|
||||
{/* main products */}
|
||||
<MainProduct />
|
||||
|
||||
Reference in New Issue
Block a user