From 126edaec87b935e3a148f187b598429ad6090f64 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Mon, 24 Mar 2025 21:35:20 +0100 Subject: [PATCH] Remove obsolete styled-component --- scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx | 8 ++------ 1 file changed, 2 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 a373301bea..99b1538c43 100644 --- a/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx +++ b/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx @@ -133,10 +133,6 @@ type FileProps = { setCurrentFile: (path: string) => void; }; -export const TreeFileContent = styled.div` - cursor: pointer; -`; - const TreeFile: FC = ({ changeType, path, parentPath, currentFile, setCurrentFile }) => { const [t] = useTranslation("repos"); const completePath = addPath(parentPath, path); @@ -146,7 +142,7 @@ const TreeFile: FC = ({ changeType, path, parentPath, currentFile, se }; return ( - setCurrentFile(completePath)}> +
setCurrentFile(completePath)}> {isCurrentFile() ? ( = ({ changeType, path, parentPath, currentFile, se )}
{path}
- +
); };