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