1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 15:20:06 +02:00

style(ui-toolkit): lint

This commit is contained in:
Sérgio Ramos 2017-07-28 18:13:45 +01:00
parent 92b9f09c01
commit 9f3bdc6bf4

View File

@ -62,9 +62,8 @@ const GraphNode = ({
}
: {};
const nodeContent = !children
? <GraphNodeContent data={data} />
: children.reduce(
const nodeContent = children
? children.reduce(
(acc, d, i) => {
acc.children.push(
<GraphNodeContent key={i} child data={d} index={i} y={acc.y} />
@ -73,7 +72,9 @@ const GraphNode = ({
return acc;
},
{ y: Constants.contentRect.y, children: [] }
).children;
).children
: <GraphNodeContent data={data} />;
const nodeShadow = instancesActive
? <GraphShadowRect
@ -96,7 +97,7 @@ const GraphNode = ({
/>
: null;
return (
return (6
<g transform={`translate(${x}, ${y})`}>
{nodeShadow}
<GraphNodeRect