Replaced usage of render() by their JSX constructor
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bc6d44db6a
commit
b5aa002877
3 changed files with 13 additions and 12 deletions
|
@ -22,15 +22,16 @@ const getDimensionsNodes = (root: ContainerModel): React.ReactNode[] => {
|
|||
const y = -(GAP * (getDepth(container) + 1));
|
||||
const strokeWidth = 1;
|
||||
const text = width.toString();
|
||||
const dimension = new Dimension({
|
||||
id,
|
||||
xStart,
|
||||
xEnd,
|
||||
y,
|
||||
strokeWidth,
|
||||
text
|
||||
});
|
||||
dimensions.push(dimension.render());
|
||||
dimensions.push(
|
||||
<Dimension
|
||||
id={id}
|
||||
xStart={xStart}
|
||||
xEnd={xEnd}
|
||||
y={y}
|
||||
strokeWidth={strokeWidth}
|
||||
text={text}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return dimensions;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue