From aa32349727d2eeba85836998bf715d9913928959 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Sun, 17 Feb 2019 12:55:51 +0100 Subject: [PATCH] Refactor --- app/src/components/Tree/TreeNodeSubnodes.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/components/Tree/TreeNodeSubnodes.tsx b/app/src/components/Tree/TreeNodeSubnodes.tsx index 7918109..6187427 100644 --- a/app/src/components/Tree/TreeNodeSubnodes.tsx +++ b/app/src/components/Tree/TreeNodeSubnodes.tsx @@ -68,7 +68,6 @@ class TreeNodeSubnodes extends React.Component { } if (this.state.alreadyAdded < edges.length) { - const delta = Math.min(this.state.alreadyAdded, edges.length - this.state.alreadyAdded) this.renderMore() } @@ -102,7 +101,7 @@ const styles = (theme: Theme) => ({ clear: 'both' as 'both', }, listItem: { - padding: '0px 0px 0px 8px', + padding: `0px 0px 0px ${theme.spacing.unit}px`, }, })