Skip to content

Commit

Permalink
feat(dayPropGetter): pass resourceId to method (#2650)
Browse files Browse the repository at this point in the history
  • Loading branch information
cutterbl committed Sep 12, 2024
1 parent 3d9ee86 commit 272eb88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DayColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class DayColumn extends React.Component {

let selectDates = { start: startDate, end: endDate }

const { className, style } = dayProp(max)
const { className, style } = dayProp(max, resource)

const DayColumnWrapperComponent =
components.dayColumnWrapper || DayColumnWrapper
Expand Down
2 changes: 1 addition & 1 deletion stories/props/dayPropGetter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LinkTo from '@storybook/addon-links/react'

# dayPropGetter

- type: `function (date: Date) => {className?: string, style?: Object}`
- type: `function (date: Date, resourceId?: Any) => {className?: string, style?: Object}`

Optionally provide a function that returns an object of className or style props to be applied to the the day background.

Expand Down

0 comments on commit 272eb88

Please sign in to comment.