From 0a27c29b262de65e0ca4fa86c610283b4a04521a Mon Sep 17 00:00:00 2001 From: WePiggyDev Date: Thu, 5 Nov 2020 15:40:10 +0800 Subject: [PATCH] feat(home): add Carousel --- src/components/CustomCarousel/CustomCarousel.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/CustomCarousel/CustomCarousel.js b/src/components/CustomCarousel/CustomCarousel.js index b64abd7f2..bbea8f6f3 100644 --- a/src/components/CustomCarousel/CustomCarousel.js +++ b/src/components/CustomCarousel/CustomCarousel.js @@ -51,7 +51,6 @@ function useResize() { const ref = React.useCallback((dom) => { const listenTo = reSizer.current.listenTo; if (dom && listenTo) { - console.log("0000", dom); refDom.current = dom; listenTo(refDom.current, (element) => setRect(element.getBoundingClientRect()) @@ -68,7 +67,6 @@ function CustomCarousel(props) { const classes = useStyles(); const [ref, rect] = useResize(); - console.log(rect); const { width } = rect; const height = width / (1200 / 300);