Skip to content

Commit edd9066

Browse files
committed
cleanup lint warnings
1 parent b2fc970 commit edd9066

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib/headers/TimelineHeaders.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ import classNames from 'classnames';
33
import { TimelineHeadersConsumer } from './HeadersContext'
44
import PropTypes from 'prop-types'
55
import SidebarHeader from './SidebarHeader'
6-
import { RIGHT_VARIANT, LEFT_VARIANT } from './constants'
6+
import { RIGHT_VARIANT } from './constants'
77
class 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

124126
TimelineHeadersWrapper.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

132134
export default TimelineHeadersWrapper

0 commit comments

Comments
 (0)