Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Nov 11, 2024
1 parent 177f626 commit 20db501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packages/calendarcard/calendarcard.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const CalendarCard = React.forwardRef<
const newDays = getDays(month)
setDays(newDays)
onPageChange?.(month)
}, [month, getDays, onPageChange])
}, [month, getDays, onPageChange, firstDayOfWeek])

const isSameDay = (day1: CalendarCardDay, day2: CalendarCardDay) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/packages/calendarcard/calendarcard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const CalendarCard = React.forwardRef<
const newDays = getDays(month)
setDays(newDays)
onPageChange?.(month)
}, [month])
}, [month, getDays, onPageChange, firstDayOfWeek])

const isSameDay = (day1: CalendarCardDay, day2: CalendarCardDay) => {
return (
Expand Down

0 comments on commit 20db501

Please sign in to comment.