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}
- +
); };