@@ -145,12 +145,12 @@ type SpanBarProps = {
145145} ;
146146
147147type SpanBarState = {
148- displayDetail : boolean ;
148+ showDetail : boolean ;
149149} ;
150150
151151class SpanBar extends React . Component < SpanBarProps , SpanBarState > {
152152 state : SpanBarState = {
153- displayDetail : false ,
153+ showDetail : false ,
154154 } ;
155155
156156 spanRowDOMRef = React . createRef < HTMLDivElement > ( ) ;
@@ -161,13 +161,13 @@ class SpanBar extends React.Component<SpanBarProps, SpanBarState> {
161161 toggleDisplayDetail = ( ) => {
162162 this . setState ( state => {
163163 return {
164- displayDetail : ! state . displayDetail ,
164+ showDetail : ! state . showDetail ,
165165 } ;
166166 } ) ;
167167 } ;
168168
169169 renderDetail = ( { isVisible} : { isVisible : boolean } ) => {
170- if ( ! this . state . displayDetail || ! isVisible ) {
170+ if ( ! this . state . showDetail || ! isVisible ) {
171171 return null ;
172172 }
173173
@@ -483,7 +483,7 @@ class SpanBar extends React.Component<SpanBarProps, SpanBarState> {
483483 renderDivider = (
484484 dividerHandlerChildrenProps : DividerHandlerManager . DividerHandlerManagerChildrenProps
485485 ) => {
486- if ( this . state . displayDetail ) {
486+ if ( this . state . showDetail ) {
487487 // we would like to hide the divider lines when the span details
488488 // has been expanded
489489 return null ;
@@ -583,7 +583,7 @@ class SpanBar extends React.Component<SpanBarProps, SpanBarState> {
583583 style = { {
584584 left : 0 ,
585585 width : toPercent ( dividerPosition ) ,
586- backgroundColor : this . state . displayDetail ? '#F0ECF3' : void 0 ,
586+ backgroundColor : this . state . showDetail ? '#F0ECF3' : void 0 ,
587587 } }
588588 >
589589 { this . renderTitle ( ) }
@@ -592,7 +592,7 @@ class SpanBar extends React.Component<SpanBarProps, SpanBarState> {
592592 style = { {
593593 left : toPercent ( dividerPosition ) ,
594594 width : toPercent ( 1 - dividerPosition ) ,
595- backgroundColor : this . state . displayDetail ? '#F0ECF3' : void 0 ,
595+ backgroundColor : this . state . showDetail ? '#F0ECF3' : void 0 ,
596596 } }
597597 >
598598 { displaySpanBar && (
@@ -624,7 +624,7 @@ class SpanBar extends React.Component<SpanBarProps, SpanBarState> {
624624 display : isSpanVisibleInView ? 'block' : 'none' ,
625625
626626 // TODO: this is a border-top; this needs polishing from a real CSS ninja
627- boxShadow : this . state . displayDetail ? '0 -1px 0 #d1cad8' : void 0 ,
627+ boxShadow : this . state . showDetail ? '0 -1px 0 #d1cad8' : void 0 ,
628628 } }
629629 onClick = { ( ) => {
630630 this . toggleDisplayDetail ( ) ;
0 commit comments