diff --git a/src/pages/Contact/Contact.tsx b/src/pages/Contact/Contact.tsx index d2debde..ccba046 100644 --- a/src/pages/Contact/Contact.tsx +++ b/src/pages/Contact/Contact.tsx @@ -45,7 +45,7 @@ function Contact() { }} modules={["control.ZoomControl", "control.FullscreenControl"]} width="500px" - height="400px" + height="200px" > diff --git a/src/widgets/NewSlider/NewSlider.tsx b/src/widgets/NewSlider/NewSlider.tsx index b8b2bed..c9e54d6 100644 --- a/src/widgets/NewSlider/NewSlider.tsx +++ b/src/widgets/NewSlider/NewSlider.tsx @@ -10,8 +10,6 @@ import "./NewSlider.scss"; import { SliderContext, SliderProps } from "@/widgets/NewSlider/context"; function NewSlider({ - autoPlay = false, - autoPlayTime = 3000, images, category = "gallery", }: SliderProps) { @@ -78,7 +76,17 @@ function NewSlider({ if (filteredMedia.length === 0) return
Нет изображений
; return ( - + { + carouselRef.current?.slideTo(index); + setSlideNumber(index); + }, + slidesCount: filteredMedia.length, + }} + >
{shouldShowControls && (