diff --git a/src/DayColumn.js b/src/DayColumn.js index dba756d08..c126385fc 100644 --- a/src/DayColumn.js +++ b/src/DayColumn.js @@ -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 diff --git a/stories/props/dayPropGetter.mdx b/stories/props/dayPropGetter.mdx index 507e50aeb..a9c3f4086 100644 --- a/stories/props/dayPropGetter.mdx +++ b/stories/props/dayPropGetter.mdx @@ -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.