Skip to content

Commit 968f693

Browse files
committed
chore: remove unnecessary react-swiper module
1 parent 0954b54 commit 968f693

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/app/[locale]/(main)/(container)/products/[...params]/components/ProductGallery.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useAppContext } from '@/hooks/useAppContext';
44
import { ExpandLess, ExpandMore } from '@mui/icons-material';
55
import { Box, IconButton, Stack, useTheme } from '@mui/material';
66
import { FC, useCallback, useRef, useState } from 'react';
7-
import { Navigation, Pagination } from 'swiper/modules';
7+
import { Pagination } from 'swiper/modules';
88
import { Swiper, SwiperSlide } from 'swiper/react';
99
import { Product } from '../../types/common';
1010
import GalleryItem from './GalleryItem';
@@ -121,9 +121,6 @@ const ProductGallery: FC<ProductGalleryProps> = ({
121121
ref={sliderRef}
122122
dir={theme.direction}
123123
direction="vertical"
124-
navigation={{
125-
enabled: true,
126-
}}
127124
breakpoints={{
128125
[theme.breakpoints.values.md]: {
129126
slidesPerView: 4,
@@ -134,7 +131,6 @@ const ProductGallery: FC<ProductGalleryProps> = ({
134131
width: 72,
135132
}}
136133
spaceBetween={theme.spacing(2)}
137-
modules={[Navigation]}
138134
>
139135
{_galleryImages?.map((item, index) => {
140136
const handleClickOnItem = () => {

0 commit comments

Comments
 (0)