@@ -23,17 +23,17 @@ ListChildComponentProps<{
2323 const { onExpand, inlineDiffOptions, leftDiff, rightDiff } = data ;
2424
2525 const leftPart = leftDiff [ index ] ;
26- const RightPart = rightDiff [ index ] ;
26+ const rightPart = rightDiff [ index ] ;
2727
2828 // Collapsed special row -> we will render as a grid-row with two expand cells
29- if ( isCollapsed ( leftPart ) || isCollapsed ( RightPart ) ) {
29+ if ( isCollapsed ( leftPart ) || isCollapsed ( rightPart ) ) {
3030 const originalLeftLine = leftDiff [ index ] ;
3131
3232 const handleExpand = useCallback ( ( originalLeftLine : CollapsedLine ) => {
3333 if ( isCollapsed ( originalLeftLine ) ) {
3434 onExpand ( originalLeftLine . segmentIndex ) ;
3535 }
36- } , [ onExpand , originalLeftLine ] ) ;
36+ } , [ onExpand ] ) ;
3737
3838 return (
3939 < div
@@ -67,12 +67,12 @@ ListChildComponentProps<{
6767 }
6868
6969 const [ lDiff , rDiff ]
70- = leftPart . type === "modify" && RightPart . type === "modify"
71- ? getInlineDiff ( leftPart . text , RightPart . text , inlineDiffOptions ?? { mode : "char" } )
70+ = leftPart . type === "modify" && rightPart . type === "modify"
71+ ? getInlineDiff ( leftPart . text , rightPart . text , inlineDiffOptions ?? { mode : "char" } )
7272 : [ [ ] , [ ] ] ;
7373
7474 const lTokens = syntaxHighlightLine ( true , leftPart . text , 0 ) ;
75- const rTokens = syntaxHighlightLine ( true , RightPart . text , 0 ) ;
75+ const rTokens = syntaxHighlightLine ( true , rightPart . text , 0 ) ;
7676
7777 const lResult = mergeSegments ( lTokens , lDiff ) ;
7878 const rResult = mergeSegments ( rTokens , rDiff ) ;
@@ -119,14 +119,14 @@ ListChildComponentProps<{
119119 </ pre >
120120 </ div >
121121
122- < div className = { `cell line-${ RightPart . type } line-number` } role = "cell" >
123- { RightPart . lineNumber }
122+ < div className = { `cell line-${ rightPart . type } line-number` } role = "cell" >
123+ { rightPart . lineNumber }
124124 </ div >
125125
126- < div className = { `cell line-${ RightPart . type } ${ equalEmptyLine ( RightPart ) } ` } role = "cell" >
126+ < div className = { `cell line-${ rightPart . type } ${ equalEmptyLine ( rightPart ) } ` } role = "cell" >
127127 < pre >
128- { RightPart . text && indentChar . repeat ( RightPart . level * indentSize ) }
129- { renderInlineResult ( RightPart . text , rResult , RightPart . comma ) }
128+ { rightPart . text && indentChar . repeat ( rightPart . level * indentSize ) }
129+ { renderInlineResult ( rightPart . text , rResult , rightPart . comma ) }
130130 </ pre >
131131 </ div >
132132 </ div >
0 commit comments