mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
made changeset tags round and colored them again
This commit is contained in:
@@ -178,12 +178,20 @@ class DiffFile extends React.Component<Props, State> {
|
|||||||
if (key === value) {
|
if (key === value) {
|
||||||
value = file.type;
|
value = file.type;
|
||||||
}
|
}
|
||||||
|
const color =
|
||||||
|
value === "added"
|
||||||
|
? "is-success"
|
||||||
|
: value === "deleted"
|
||||||
|
? "is-danger"
|
||||||
|
: "is-info";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"tag",
|
"tag",
|
||||||
"is-info",
|
"is-rounded",
|
||||||
"has-text-weight-normal",
|
"has-text-weight-normal",
|
||||||
|
color,
|
||||||
classes.changeType
|
classes.changeType
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user