@@ -3,13 +3,14 @@ import classNames from 'classnames';
33import { TimelineHeadersConsumer } from './HeadersContext'
44import PropTypes from 'prop-types'
55import SidebarHeader from './SidebarHeader'
6- import { RIGHT_VARIANT , LEFT_VARIANT } from './constants'
6+ import { RIGHT_VARIANT } from './constants'
77class TimelineHeaders extends React . Component {
88 static propTypes = {
99 registerScroll : PropTypes . func . isRequired ,
1010 leftSidebarWidth : PropTypes . number . isRequired ,
1111 rightSidebarWidth : PropTypes . number . isRequired ,
1212 style : PropTypes . object ,
13+ children : PropTypes . node ,
1314 className : PropTypes . string ,
1415 calendarHeaderStyle : PropTypes . object ,
1516 calendarHeaderClassName : PropTypes . string ,
@@ -110,23 +111,24 @@ const TimelineHeadersWrapper = ({
110111 leftSidebarWidth = { leftSidebarWidth }
111112 rightSidebarWidth = { rightSidebarWidth }
112113 registerScroll = { registerScroll }
113- children = { children }
114114 style = { style }
115115 className = { className }
116116 calendarHeaderStyle = { calendarHeaderStyle }
117117 calendarHeaderClassName = { calendarHeaderClassName }
118- />
118+ >
119+ { children }
120+ </ TimelineHeaders >
119121 )
120122 } }
121123 </ TimelineHeadersConsumer >
122124)
123125
124126TimelineHeadersWrapper . propTypes = {
125127 style : PropTypes . object ,
128+ children : PropTypes . node ,
126129 className : PropTypes . string ,
127130 calendarHeaderStyle : PropTypes . object ,
128131 calendarHeaderClassName : PropTypes . string ,
129- headerRef : PropTypes . func ,
130132}
131133
132134export default TimelineHeadersWrapper
0 commit comments