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>
{scrollable && (
<Bullets <Bullets
activeIndex={activeIndex} activeIndex={activeIndex}
allSlides={slides.length} allSlides={slides.length}
visibleSlides={visibleSlides} visibleSlides={visibleSlides}
changeSlide={changeSlide} changeSlide={changeSlide}
/> />
)}
</Container> </Container>
); );
}; };