Skip to content

Commit

Permalink
feat(home): add Carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
wepiggy-dev committed Nov 5, 2020
1 parent 92a3fd6 commit 0a27c29
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/CustomCarousel/CustomCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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);
Expand Down

0 comments on commit 0a27c29

Please sign in to comment.