From 3e34e9183be6411c9d2007327c2a906ff196ef88 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Wed, 17 Jul 2019 10:12:39 +0200 Subject: [PATCH] made changeset tags round and colored them again --- .../packages/ui-components/src/repos/DiffFile.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scm-ui-components/packages/ui-components/src/repos/DiffFile.js b/scm-ui-components/packages/ui-components/src/repos/DiffFile.js index 3d2dba6c8b..a921a4a0a4 100644 --- a/scm-ui-components/packages/ui-components/src/repos/DiffFile.js +++ b/scm-ui-components/packages/ui-components/src/repos/DiffFile.js @@ -178,12 +178,20 @@ class DiffFile extends React.Component { if (key === value) { value = file.type; } + const color = + value === "added" + ? "is-success" + : value === "deleted" + ? "is-danger" + : "is-info"; + return (