File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,13 @@ export default class FilePatchView {
99
99
render ( ) {
100
100
let stageButtonLabelPrefix = this . props . stagingStatus === 'unstaged' ? 'Stage' : 'Unstage'
101
101
return (
102
- < div className = 'git-FilePatchView' tabIndex = '-1' > { this . props . hunks . map ( ( hunk ) => {
103
- const isSelected = this . list . getSelectedKeys ( ) . has ( hunk )
104
- const selectedLines = isSelected ? this . list . getSelectedItems ( ) : EMPTY_SET
105
- return (
106
- < div onmouseup = { ( ) => this . disableSelections ( ) }
107
- onmousedown = { ( ) => this . enableSelections ( ) } >
102
+ < div className = 'git-FilePatchView' tabIndex = '-1'
103
+ onmouseup = { ( ) => this . disableSelections ( ) }
104
+ onmousedown = { ( ) => this . enableSelections ( ) } >
105
+ { this . props . hunks . map ( ( hunk ) => {
106
+ const isSelected = this . list . getSelectedKeys ( ) . has ( hunk )
107
+ const selectedLines = isSelected ? this . list . getSelectedItems ( ) : EMPTY_SET
108
+ return (
108
109
< HunkView
109
110
hunk = { hunk }
110
111
isSelected = { isSelected }
@@ -115,9 +116,8 @@ export default class FilePatchView {
115
116
stageButtonLabelPrefix = { stageButtonLabelPrefix }
116
117
selectionEnabled = { this . selectionEnabled }
117
118
registerView = { this . props . registerHunkView } />
118
- </ div >
119
- )
120
- } ) }
119
+ )
120
+ } ) }
121
121
</ div >
122
122
)
123
123
}
You can’t perform that action at this time.
0 commit comments