Skip to content

Commit 2fc633c

Browse files
committed
prettier formatting
1 parent edd9066 commit 2fc633c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/lib/headers/TimelineHeaders.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import classNames from 'classnames';
2+
import classNames from 'classnames'
33
import { TimelineHeadersConsumer } from './HeadersContext'
44
import PropTypes from 'prop-types'
55
import 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

134134
export default TimelineHeadersWrapper

0 commit comments

Comments
 (0)