Skip to content

Commit fe36150

Browse files
committed
Tweak unmerged row style
+ got eslint to shut up
1 parent 9c89658 commit fe36150

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

src/components/FileList.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,11 @@ export class FileList extends React.Component<IFileListProps, IFileListState> {
365365
trans={this.props.trans}
366366
actions={!file.is_binary && diffButton}
367367
file={file}
368-
contextMenu={this.openContextMenu}
369368
model={this.props.model}
370369
selected={this._isSelectedFile(file)}
371370
selectFile={this.updateSelectedFile}
372371
onDoubleClick={() => this._openDiffView(file)}
373-
style={style} // TODO probably want to give a different 'danger' style
372+
style={{ ...style, color: 'var(--jp-warn-color0)' }}
374373
/>
375374
);
376375
};
@@ -379,18 +378,6 @@ export class FileList extends React.Component<IFileListProps, IFileListState> {
379378
// Hide section if no merge conflicts are present
380379
return files.length > 0 ? (
381380
<GitStage
382-
actions={
383-
<ActionButton
384-
className={hiddenButtonStyle}
385-
disabled={files.length === 0}
386-
icon={removeIcon}
387-
title={this.props.trans.__('Stage all changes')}
388-
onClick={() => {
389-
// TODO open modal with confirmation to stage with merge conflicts
390-
// TODO REMOVE ACTION
391-
}}
392-
/>
393-
}
394381
collapsible
395382
files={files}
396383
heading={this.props.trans.__('Conflicted')}

src/components/GitStage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface IGitStageProps {
2020
/**
2121
* Actions component to display at the far right of the stage
2222
*/
23-
actions: React.ReactElement;
23+
actions?: React.ReactElement;
2424
/**
2525
* Is this group collapsible
2626
*/

src/components/diff/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class DiffModel<T> implements IDisposable, Git.Diff.IModel<T> {
3434
);
3535
}
3636

37-
protected _emitChanged(type: Git.Diff.IModelChange['type']) {
37+
protected _emitChanged(type: Git.Diff.IModelChange['type']): void {
3838
this._changed.emit({ type });
3939
}
4040

0 commit comments

Comments
 (0)