From ccef05bbc5bba05e8cb1f2260dab58039ba406e2 Mon Sep 17 00:00:00 2001 From: LukasBisz Date: Sun, 5 Jan 2025 19:59:04 +0100 Subject: [PATCH] Add color to icons --- .../src/repos/diff/DiffFileTree.tsx | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx b/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx index 2791d5f989..cd4c7a4dc4 100644 --- a/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx +++ b/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx @@ -124,29 +124,49 @@ const TreeFile: FC = ({ changeType, path, parentPath, currentFile, se file )} -
{changeType}
+
{path}
{changeType === "ADD" && ( - + plus )} {changeType === "MODIFY" && ( - + slash )} {changeType === "DELETE" && ( - + minus )} {changeType === "RENAME" && ( - + slash )} {changeType === "COPY" && ( - + plus )}