mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +02:00
style(ui-toolkit): lint
This commit is contained in:
parent
92b9f09c01
commit
9f3bdc6bf4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user