Skip to content

Commit 272eb88

Browse files
authored
feat(dayPropGetter): pass resourceId to method (jquense#2650)
jquense#2634
1 parent 3d9ee86 commit 272eb88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DayColumn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class DayColumn extends React.Component {
120120

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

123-
const { className, style } = dayProp(max)
123+
const { className, style } = dayProp(max, resource)
124124

125125
const DayColumnWrapperComponent =
126126
components.dayColumnWrapper || DayColumnWrapper

stories/props/dayPropGetter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import LinkTo from '@storybook/addon-links/react'
33

44
# dayPropGetter
55

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

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

0 commit comments

Comments
 (0)