Skip to content

Commit

Permalink
fixed left arrow bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lankabelgezogen committed Sep 22, 2024
1 parent f4fb997 commit bac17f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/ui/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,14 @@ CarouselItem.displayName = "CarouselItem"
const CarouselPrevious = React.forwardRef<
HTMLButtonElement,
React.ComponentProps<typeof Button>
// eslint-disable-next-line @typescript-eslint/no-unused-vars
>(({ className, variant = "outline", size = "icon", ...props }, ref) => {
const { orientation, scrollPrev, canScrollPrev } = useCarousel()

return (
<Button
ref={ref}
variant={variant}
size={size}
className={cn(
"absolute h-8 w-8 rounded-full",
orientation === "horizontal"
Expand Down

0 comments on commit bac17f7

Please sign in to comment.