diff --git a/src/Calendar.js b/src/Calendar.js index 4ccdf147c..5d7b7baa6 100644 --- a/src/Calendar.js +++ b/src/Calendar.js @@ -730,6 +730,7 @@ class Calendar extends React.Component { * dateCellWrapper: MyDateCellWrapper, * timeSlotWrapper: MyTimeSlotWrapper, * timeGutterHeader: MyTimeGutterWrapper, + * timeGutterWrapper: MyTimeGutterWrapper, * resourceHeader: MyResourceHeader, * toolbar: MyToolbar, * agenda: { @@ -762,6 +763,7 @@ class Calendar extends React.Component { dayColumnWrapper: PropTypes.elementType, timeSlotWrapper: PropTypes.elementType, timeGutterHeader: PropTypes.elementType, + timeGutterWrapper: PropTypes.elementType, resourceHeader: PropTypes.elementType, toolbar: PropTypes.elementType, @@ -930,6 +932,7 @@ class Calendar extends React.Component { dateCellWrapper: NoopWrapper, weekWrapper: NoopWrapper, timeSlotWrapper: NoopWrapper, + timeGutterWrapper: NoopWrapper, }), accessors: { start: wrapAccessor(startAccessor), diff --git a/src/TimeGutter.js b/src/TimeGutter.js index 949e7e241..a2b84962b 100644 --- a/src/TimeGutter.js +++ b/src/TimeGutter.js @@ -33,6 +33,7 @@ const TimeGutter = ({ getters, gutterRef, }) => { + const { timeGutterWrapper: TimeGutterWrapper } = components const { start, end } = useMemo( () => adjustForDST({ min, max, localizer }), // eslint-disable-next-line react-hooks/exhaustive-deps @@ -81,20 +82,22 @@ const TimeGutter = ({ ) return ( -