Skip to content

Commit

Permalink
fix(components/carousel): autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Jul 28, 2024
1 parent a56e75a commit ae43914
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
5 changes: 3 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"@mantine/hooks": "^7.8.0",
"@mantine/nprogress": "^7.8.0",
"@tabler/icons-react": "^3.2.0",
"embla-carousel-autoplay": "8.0.2",
"embla-carousel-react": "7.1.0",
"embla-carousel": "^7.1.0",
"embla-carousel-autoplay": "^7.1.0",
"embla-carousel-react": "^7.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
24 changes: 11 additions & 13 deletions web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions web/src/components/carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export default function Media() {

return (
<div className={classes.container}>
<Carousel className={classes.carousel} slideSize='100%' plugins={[autoplay.current]} draggable={false} loop withControls={false}>
<Carousel className={classes.carousel} plugins={[autoplay.current]} draggable={false} loop withControls={false}>
{slides}
</Carousel>
</div>
);
}
}

0 comments on commit ae43914

Please sign in to comment.