@@ -272,26 +272,26 @@ export class FileItem extends React.Component<IFileItemProps, {}> {
272272 title = { this . props . file . to }
273273 >
274274 { extractFilename ( this . props . file . to ) }
275- < span className = { this . getFileChangedLabelClass ( this . props . file . y ) } >
276- { this . getFileChangedLabel ( this . props . file . y ) }
277- </ span >
278- { this . props . stage === 'Changed' && (
279- < React . Fragment >
280- < button
281- className = { `jp-Git-button ${ this . getDiscardFileIconClass ( ) } ` }
282- title = { 'Discard this change' }
283- onClick = { ( ) => {
284- this . discardSelectedFileChanges ( ) ;
285- } }
286- />
287- { isDiffSupported ( this . props . file . to ) &&
288- this . diffButton ( { specialRef : 'WORKING' } ) }
289- </ React . Fragment >
290- ) }
291- { this . props . stage === 'Staged' &&
292- isDiffSupported ( this . props . file . to ) &&
293- this . diffButton ( { specialRef : 'INDEX' } ) }
294275 </ span >
276+ < span className = { this . getFileChangedLabelClass ( this . props . file . y ) } >
277+ { this . getFileChangedLabel ( this . props . file . y ) }
278+ </ span >
279+ { this . props . stage === 'Changed' && (
280+ < React . Fragment >
281+ < button
282+ className = { `jp-Git-button ${ this . getDiscardFileIconClass ( ) } ` }
283+ title = { 'Discard this change' }
284+ onClick = { ( ) => {
285+ this . discardSelectedFileChanges ( ) ;
286+ } }
287+ />
288+ { isDiffSupported ( this . props . file . to ) &&
289+ this . diffButton ( { specialRef : 'WORKING' } ) }
290+ </ React . Fragment >
291+ ) }
292+ { this . props . stage === 'Staged' &&
293+ isDiffSupported ( this . props . file . to ) &&
294+ this . diffButton ( { specialRef : 'INDEX' } ) }
295295 </ li >
296296 ) ;
297297 }
0 commit comments