From e9ffeeb2e9b48d2f88e37047e9c3ae8905df9b3c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 27 Aug 2021 16:00:44 +0700 Subject: [PATCH] init --- src/components/common/CarouselCommon/CarouselCommon.tsx | 2 +- .../home/CollectionCarcousel/CollectionCarcousel.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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