Skip to content

Commit

Permalink
Fix locale prop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MarceloPrado committed Feb 23, 2024
1 parent e4e1606 commit 801bc18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-guests-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marceloterreiro/flash-calendar": patch
---

Fix locale not being forwarded to `Calendar` component
3 changes: 3 additions & 0 deletions packages/flash-calendar/src/components/CalendarList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const CalendarList = memo(
calendarFutureScrollRangeInMonths = 12,
calendarFirstDayOfWeek = "sunday",
CalendarScrollComponent = FlashList,
calendarFormatLocale,

// Spacings
calendarSpacing = 20,
Expand Down Expand Up @@ -143,6 +144,7 @@ export const CalendarList = memo(
getCalendarWeekDayFormat,
calendarMaxDateId,
calendarMinDateId,
calendarFormatLocale,
calendarMonthHeaderHeight,
calendarRowHorizontalSpacing,
getCalendarMonthFormat,
Expand All @@ -160,6 +162,7 @@ export const CalendarList = memo(
getCalendarWeekDayFormat,
calendarMaxDateId,
calendarMinDateId,
calendarFormatLocale,
calendarMonthHeaderHeight,
calendarRowHorizontalSpacing,
getCalendarMonthFormat,
Expand Down

0 comments on commit 801bc18

Please sign in to comment.