Skip to content

Commit

Permalink
add: monthFormat default value
Browse files Browse the repository at this point in the history
  • Loading branch information
takurinton committed Sep 4, 2023
1 parent bfbb5c4 commit 8c7cd14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Calendar/Calendar/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type CalendarProps = React.HTMLAttributes<HTMLDivElement> & {
const Calendar = forwardRef<HTMLDivElement, CalendarProps>(function Calendar(
{
date,
monthFormat,
monthFormat = "YYYY年M月",
weekList,
actions,
onClickCloseButton,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Calendar/CalendarRange/CalendarRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const CalendarRange = forwardRef<HTMLDivElement, CalendarRangeProps>(
{
startDate,
endDate,
monthFormat,
monthFormat = "YYYY年M月",
weekList,
actions,
onClose,
Expand Down

0 comments on commit 8c7cd14

Please sign in to comment.