11import React from 'react'
2- import classNames from 'classnames' ;
2+ import classNames from 'classnames'
33import { TimelineHeadersConsumer } from './HeadersContext'
44import PropTypes from 'prop-types'
55import SidebarHeader from './SidebarHeader'
@@ -14,7 +14,7 @@ class TimelineHeaders extends React.Component {
1414 className : PropTypes . string ,
1515 calendarHeaderStyle : PropTypes . object ,
1616 calendarHeaderClassName : PropTypes . string ,
17- headerRef : PropTypes . func ,
17+ headerRef : PropTypes . func
1818 }
1919
2020 constructor ( props ) {
@@ -42,8 +42,8 @@ class TimelineHeaders extends React.Component {
4242 }
4343 }
4444
45- handleRootRef = ( element ) => {
46- if ( this . props . headerRef ) {
45+ handleRootRef = element => {
46+ if ( this . props . headerRef ) {
4747 this . props . headerRef ( element )
4848 }
4949 }
@@ -66,11 +66,11 @@ class TimelineHeaders extends React.Component {
6666 calendarHeaders . push ( child )
6767 }
6868 } )
69- if ( ! leftSidebarHeader ) {
70- leftSidebarHeader = < SidebarHeader />
69+ if ( ! leftSidebarHeader ) {
70+ leftSidebarHeader = < SidebarHeader />
7171 }
72- if ( ! rightSidebarHeader && this . props . rightSidebarWidth ) {
73- rightSidebarHeader = < SidebarHeader variant = "right" />
72+ if ( ! rightSidebarHeader && this . props . rightSidebarWidth ) {
73+ rightSidebarHeader = < SidebarHeader variant = "right" />
7474 }
7575 return (
7676 < div
@@ -128,7 +128,7 @@ TimelineHeadersWrapper.propTypes = {
128128 children : PropTypes . node ,
129129 className : PropTypes . string ,
130130 calendarHeaderStyle : PropTypes . object ,
131- calendarHeaderClassName : PropTypes . string ,
131+ calendarHeaderClassName : PropTypes . string
132132}
133133
134134export default TimelineHeadersWrapper
0 commit comments