mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 01:32:06 +10:00
fix: build/ cleanup
This commit is contained in:
@ -64,12 +64,6 @@ export const Carousel = () => {
|
|||||||
setMounted(true);
|
setMounted(true);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (mounted && videoRefs.current[selectedIndex]) {
|
|
||||||
videoRefs.current[selectedIndex].load();
|
|
||||||
}
|
|
||||||
}, [selectedIndex, mounted, resolvedTheme]);
|
|
||||||
|
|
||||||
const [emblaRef, emblaApi] = useEmblaCarousel({ loop: true }, [
|
const [emblaRef, emblaApi] = useEmblaCarousel({ loop: true }, [
|
||||||
Autoplay({ playOnInit: true, delay: autoplayDelay[selectedIndex] || 5000 }),
|
Autoplay({ playOnInit: true, delay: autoplayDelay[selectedIndex] || 5000 }),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user