fix(dashboard-v2): fix Slider bullets showing unnecessarily

This commit is contained in:
Michał Leszczyk 2022-02-23 11:54:43 +01:00
parent 92c2860ccb
commit 279bd8cb8c
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
1 changed files with 8 additions and 6 deletions

View File

@ -61,12 +61,14 @@ const Slider = ({ slides, breakpoints }) => {
); );
})} })}
</Scroller> </Scroller>
<Bullets {scrollable && (
activeIndex={activeIndex} <Bullets
allSlides={slides.length} activeIndex={activeIndex}
visibleSlides={visibleSlides} allSlides={slides.length}
changeSlide={changeSlide} visibleSlides={visibleSlides}
/> changeSlide={changeSlide}
/>
)}
</Container> </Container>
); );
}; };