category scroll

This commit is contained in:
hamid zarghami
2025-12-28 15:09:57 +03:30
parent b36076a021
commit 434cb99051
2 changed files with 9 additions and 11 deletions
@@ -53,7 +53,7 @@ const CategoryScroll = ({
className
)}
>
<Renderer
{/* <Renderer
key="all"
className={clsx(selectedCategory === "0" && "bg-container!")}
onClick={handleSelect(0)}
@@ -66,9 +66,9 @@ const CategoryScroll = ({
alt="category image"
/>
<span className="text-xs text-foreground">همه</span>
</Renderer>
</Renderer> */}
{categories.map((item, index) => {
const categoryIndex = index + 1;
const categoryIndex = index;
const isSelected = String(categoryIndex) === selectedCategory;
return (