fix(dashboard-v2): fix slider's bullets click handling

This commit is contained in:
Michał Leszczyk 2022-03-02 12:17:15 +01:00
parent 18e198d3df
commit a07b7da396
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export default function Bullets({ visibleSlides, activeIndex, allSlides, changeS
key={index} key={index}
type="button" type="button"
className={`rounded-full w-3 h-3 ${activeIndex === index ? "bg-primary" : "border-2 cursor-pointer"}`} className={`rounded-full w-3 h-3 ${activeIndex === index ? "bg-primary" : "border-2 cursor-pointer"}`}
onClick={() => changeSlide(index)} onClick={(event) => changeSlide(event, index)}
/> />
))} ))}
</div> </div>