made changeset tags round and colored them again

This commit is contained in:
Florian Scholdei
2019-07-17 10:12:39 +02:00
parent f253571d3a
commit 3e34e9183b

View File

@@ -178,12 +178,20 @@ class DiffFile extends React.Component<Props, State> {
if (key === value) {
value = file.type;
}
const color =
value === "added"
? "is-success"
: value === "deleted"
? "is-danger"
: "is-info";
return (
<span
className={classNames(
"tag",
"is-info",
"is-rounded",
"has-text-weight-normal",
color,
classes.changeType
)}
>