From 01ef497d073f61277759bdbba88dceeee32a0431 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Wed, 9 Oct 2019 16:14:07 +0200 Subject: [PATCH] =?UTF-8?q?Correcz=20=C3=BCassong=20prop=20into=20styled-c?= =?UTF-8?q?omponent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scm-ui/ui-components/src/repos/DiffFile.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scm-ui/ui-components/src/repos/DiffFile.js b/scm-ui/ui-components/src/repos/DiffFile.js index b44c697d47..2037666a10 100644 --- a/scm-ui/ui-components/src/repos/DiffFile.js +++ b/scm-ui/ui-components/src/repos/DiffFile.js @@ -29,8 +29,7 @@ type State = { const DiffFilePanel = styled.div` ${props => - props.file && - props.file.isBinary && { + props.isBinary && { borderBottom: "none" }}; `; @@ -260,7 +259,10 @@ class DiffFile extends React.Component { ? fileControlFactory(file, this.setCollapse) : null; return ( - +