mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
Allow hunk specific class names
This commit is contained in:
@@ -277,12 +277,14 @@ class DiffFile extends React.Component<Props, State> {
|
||||
if (file._links?.lines) {
|
||||
items.push(this.createHunkHeader(expandableHunk));
|
||||
}
|
||||
|
||||
items.push(
|
||||
<Hunk
|
||||
key={"hunk-" + hunk.content}
|
||||
hunk={expandableHunk.hunk}
|
||||
widgets={this.collectHunkAnnotations(hunk)}
|
||||
gutterEvents={this.createGutterEvents(hunk)}
|
||||
className={this.props.hunkClass ? this.props.hunkClass(hunk) : null}
|
||||
/>
|
||||
);
|
||||
if (file._links?.lines) {
|
||||
|
||||
Reference in New Issue
Block a user