Skip to content

Commit

Permalink
Refactor Slider component to use EmblaCarousel package directly
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalsoueidan committed Jun 14, 2024
1 parent 73aa7cd commit 1d442a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/Slider.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {Carousel, type CarouselProps} from '@mantine/carousel';
import useEmblaCarousel from 'embla-carousel-react/components';
import EmblaCarousel from 'embla-carousel';
import classes from './Slider.module.css';

export function Slider({
children,
language,
...props
}: CarouselProps & {language: string}) {
useEmblaCarousel.globalOptions = {
EmblaCarousel.globalOptions = {
direction: language === 'AR' ? 'rtl' : 'ltr',
};

Expand Down

0 comments on commit 1d442a5

Please sign in to comment.