@@ -23,17 +23,17 @@ ListChildComponentProps<{
23
23
const { onExpand, inlineDiffOptions, leftDiff, rightDiff } = data ;
24
24
25
25
const leftPart = leftDiff [ index ] ;
26
- const RightPart = rightDiff [ index ] ;
26
+ const rightPart = rightDiff [ index ] ;
27
27
28
28
// 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 ) ) {
30
30
const originalLeftLine = leftDiff [ index ] ;
31
31
32
32
const handleExpand = useCallback ( ( originalLeftLine : CollapsedLine ) => {
33
33
if ( isCollapsed ( originalLeftLine ) ) {
34
34
onExpand ( originalLeftLine . segmentIndex ) ;
35
35
}
36
- } , [ onExpand , originalLeftLine ] ) ;
36
+ } , [ onExpand ] ) ;
37
37
38
38
return (
39
39
< div
@@ -67,12 +67,12 @@ ListChildComponentProps<{
67
67
}
68
68
69
69
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" } )
72
72
: [ [ ] , [ ] ] ;
73
73
74
74
const lTokens = syntaxHighlightLine ( true , leftPart . text , 0 ) ;
75
- const rTokens = syntaxHighlightLine ( true , RightPart . text , 0 ) ;
75
+ const rTokens = syntaxHighlightLine ( true , rightPart . text , 0 ) ;
76
76
77
77
const lResult = mergeSegments ( lTokens , lDiff ) ;
78
78
const rResult = mergeSegments ( rTokens , rDiff ) ;
@@ -119,14 +119,14 @@ ListChildComponentProps<{
119
119
</ pre >
120
120
</ div >
121
121
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 }
124
124
</ div >
125
125
126
- < div className = { `cell line-${ RightPart . type } ${ equalEmptyLine ( RightPart ) } ` } role = "cell" >
126
+ < div className = { `cell line-${ rightPart . type } ${ equalEmptyLine ( rightPart ) } ` } role = "cell" >
127
127
< 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 ) }
130
130
</ pre >
131
131
</ div >
132
132
</ div >
0 commit comments