Skip to content

Commit

Permalink
Fix monthFormat default value (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
takurinton authored Sep 5, 2023
1 parent bfbb5c4 commit c392ecd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-queens-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ingred-ui": patch
---

Fix monthFormat and weekList default value
4 changes: 2 additions & 2 deletions src/components/Calendar/Calendar/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export type CalendarProps = React.HTMLAttributes<HTMLDivElement> & {
const Calendar = forwardRef<HTMLDivElement, CalendarProps>(function Calendar(
{
date,
monthFormat,
weekList,
monthFormat = "YYYY年M月",
weekList = ["日", "月", "火", "水", "木", "金", "土"],
actions,
onClickCloseButton,
isOutsideRange = () => false,
Expand Down
4 changes: 2 additions & 2 deletions src/components/Calendar/CalendarRange/CalendarRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export const CalendarRange = forwardRef<HTMLDivElement, CalendarRangeProps>(
{
startDate,
endDate,
monthFormat,
weekList,
monthFormat = "YYYY年M月",
weekList = ["日", "月", "火", "水", "木", "金", "土"],
actions,
onClose,
isOutsideRange = () => false,
Expand Down

0 comments on commit c392ecd

Please sign in to comment.