diff --git a/src/components/common/CarouselCommon/CarouselCommon.tsx b/src/components/common/CarouselCommon/CarouselCommon.tsx index 796e46eaf..ef2199ce5 100644 --- a/src/components/common/CarouselCommon/CarouselCommon.tsx +++ b/src/components/common/CarouselCommon/CarouselCommon.tsx @@ -55,7 +55,7 @@ const CarouselCommon = ({ array = [...Array(Math.ceil(data.length/(Number(slider.details().slidesPerView)||1))).keys()].map((i)=>{ return (Number(slider.details().slidesPerView)||1)*i }) - + console.log(array) setDotArr(array) } }, [isDot,slider]) diff --git a/src/components/modules/home/CollectionCarcousel/CollectionCarcousel.tsx b/src/components/modules/home/CollectionCarcousel/CollectionCarcousel.tsx index 594fd251e..3007624db 100644 --- a/src/components/modules/home/CollectionCarcousel/CollectionCarcousel.tsx +++ b/src/components/modules/home/CollectionCarcousel/CollectionCarcousel.tsx @@ -8,21 +8,21 @@ import { CollectionHeadingProps } from 'src/components/common/CollectionHeading/ import { ProductCardProps } from 'src/components/common/ProductCard/ProductCard' import { QUERY_KEY, ROUTE } from 'src/utils/constanst.utils' import s from './CollectionCarcousel.module.scss' -interface ColectionCarcoucelProps extends CollectionHeadingProps { +interface ColectionCarcouselProps extends CollectionHeadingProps { data: ProductCardProps[] itemKey: string viewAllLink?: string, category:string } -const ColectionCarcoucel = ({ +const ColectionCarcousel = ({ data, itemKey, title, subtitle, type, category -}: ColectionCarcoucelProps) => { +}: ColectionCarcouselProps) => { return (
@@ -44,4 +44,4 @@ const ColectionCarcoucel = ({ ) } -export default ColectionCarcoucel +export default ColectionCarcousel