From 7a3f176e7911ecfa43285a553405c477e43228c3 Mon Sep 17 00:00:00 2001 From: xomimishka Date: Tue, 8 Jul 2025 17:38:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B1=D0=B8=D0=BB=D0=B4=D0=B8=D0=BD=D0=B3=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Contact/Contact.tsx | 2 +- src/widgets/NewSlider/NewSlider.tsx | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) 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 && (