Skip to content

Commit

Permalink
fix: RangeCalendar chevron button type (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien authored Apr 10, 2024
1 parent 45080fc commit 5b2674d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/frosted-ui/src/components/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function RangeCalendar({ className, ...props }: RangeCalendarProps) {
// @ts-expect-error fix mismatching onPress and onClick types
onClick={prevOnPress}
size="1"
type="button"
>
<CalendaChevronLeftIcon />
</IconButton>
Expand All @@ -177,6 +178,7 @@ function RangeCalendar({ className, ...props }: RangeCalendarProps) {
// @ts-expect-error fix mismatching onPress and onClick types
onClick={nextOnPress}
size="1"
type="button"
>
<CalendaChevronLeftIcon style={{ transform: 'rotate(180deg)' }} />
</IconButton>
Expand Down

0 comments on commit 5b2674d

Please sign in to comment.