category scroll
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user