Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ class Calendar extends React.Component {
* position may break the calendar in unexpected ways.
*
* ```js
* (date: Date) => { className?: string, style?: Object }
* (date: Date, resourceId: (number|string)) => { className?: string, style?: Object }
* ```
*/
slotPropGetter: PropTypes.func,
Expand Down
2 changes: 1 addition & 1 deletion src/TimeSlotGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class TimeSlotGroup extends Component {
return (
<div className="rbc-timeslot-group">
{group.map((value, idx) => {
const slotProps = getters ? getters.slotProp(value) : {}
const slotProps = getters ? getters.slotProp(value, resource) : {}
return (
<Wrapper key={idx} value={value} resource={resource}>
<div
Expand Down