diff --git a/src/Calendar.js b/src/Calendar.js index cf7487eee..dc843f0ca 100644 --- a/src/Calendar.js +++ b/src/Calendar.js @@ -649,6 +649,7 @@ class Calendar extends React.Component { eventContainerWrapper: elementType, dayWrapper: elementType, dateCellWrapper: elementType, + timeSlotWrapper: elementType, timeGutterHeader: elementType, toolbar: elementType, @@ -767,6 +768,7 @@ class Calendar extends React.Component { dayWrapper: NoopWrapper, dateCellWrapper: NoopWrapper, weekWrapper: NoopWrapper, + timeSlotWrapper: NoopWrapper, }), accessors: { start: wrapAccessor(startAccessor), diff --git a/src/TimeGrid.js b/src/TimeGrid.js index 9260311c2..be363a191 100644 --- a/src/TimeGrid.js +++ b/src/TimeGrid.js @@ -247,6 +247,7 @@ export default class TimeGrid extends Component { step={this.props.step} getNow={this.props.getNow} timeslots={this.props.timeslots} + components={components} className="rbc-time-gutter" /> {this.renderEvents(range, rangeEvents, getNow(), resources || [null])} diff --git a/src/TimeGutter.js b/src/TimeGutter.js index 6a6b2975a..3824e0471 100644 --- a/src/TimeGutter.js +++ b/src/TimeGutter.js @@ -12,6 +12,7 @@ export default class TimeGutter extends Component { timeslots: PropTypes.number.isRequired, step: PropTypes.number.isRequired, getNow: PropTypes.func.isRequired, + components: PropTypes.object.isRequired, localizer: PropTypes.object.isRequired, resource: PropTypes.string, @@ -47,7 +48,7 @@ export default class TimeGutter extends Component { } render() { - const { resource } = this.props + const { resource, components } = this.props return (