1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +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 const nodeContent = children
? <GraphNodeContent data={data} /> ? children.reduce(
: children.reduce(
(acc, d, i) => { (acc, d, i) => {
acc.children.push( acc.children.push(
<GraphNodeContent key={i} child data={d} index={i} y={acc.y} /> <GraphNodeContent key={i} child data={d} index={i} y={acc.y} />
@ -73,7 +72,9 @@ const GraphNode = ({
return acc; return acc;
}, },
{ y: Constants.contentRect.y, children: [] } { y: Constants.contentRect.y, children: [] }
).children; ).children
: <GraphNodeContent data={data} />;
const nodeShadow = instancesActive const nodeShadow = instancesActive
? <GraphShadowRect ? <GraphShadowRect
@ -96,7 +97,7 @@ const GraphNode = ({
/> />
: null; : null;
return ( return (6
<g transform={`translate(${x}, ${y})`}> <g transform={`translate(${x}, ${y})`}>
{nodeShadow} {nodeShadow}
<GraphNodeRect <GraphNodeRect