Skip to content

Commit 46804a9

Browse files
committed
type err fix
1 parent 948d3f4 commit 46804a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/ui/src/components/calendar.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ function Calendar({
5858
...classNames,
5959
}}
6060
components={{
61-
IconLeft: ({ className, ...props }) => (
62-
<ChevronLeft className={cn("h-4 w-4", className)} {...props} />
63-
),
64-
IconRight: ({ className, ...props }) => (
65-
<ChevronRight className={cn("h-4 w-4", className)} {...props} />
66-
),
61+
Chevron: ({ orientation, className, ...props }) =>
62+
orientation === "left" ? (
63+
<ChevronLeft className={cn("h-4 w-4", className)} {...props} />
64+
) : (
65+
<ChevronRight className={cn("h-4 w-4", className)} {...props} />
66+
),
6767
}}
6868
{...props}
6969
/>

0 commit comments

Comments
 (0)