Skip to content

Commit

Permalink
fix: type hints for carousel component are not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelblijleven committed Jan 3, 2024
1 parent 78dd674 commit 4336114
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/components/ui/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,8 @@ const CarouselPrevious = React.forwardRef<
const { orientation, scrollPrev, canScrollPrev } = useCarousel()

return (
<Button
ref={ref}
variant={variant}
size={size}
// @ts-expect-error: size has incorrect type
<Button ref={ref} variant={variant} size={size}
className={cn(
"absolute h-8 w-8 rounded-full",
orientation === "horizontal"
Expand All @@ -225,10 +223,8 @@ const CarouselNext = React.forwardRef<
const { orientation, scrollNext, canScrollNext } = useCarousel()

return (
<Button
ref={ref}
variant={variant}
size={size}
// @ts-expect-error: size has incorrect type
<Button ref={ref} variant={variant} size={size}
className={cn(
"absolute h-8 w-8 rounded-full",
orientation === "horizontal"
Expand Down

0 comments on commit 4336114

Please sign in to comment.