mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-24 06:58:48 -05:00
fix: linting errors
This commit is contained in:
@@ -56,6 +56,7 @@ export const Connector = ({ connector }: Props) => {
|
||||
const position = getAnchorTile(anchor, nodes, getAllAnchors(connectors));
|
||||
|
||||
return {
|
||||
id: anchor.id,
|
||||
x: (connector.path.rectangle.from.x - position.x) * unprojectedTileSize,
|
||||
y: (connector.path.rectangle.from.y - position.y) * unprojectedTileSize
|
||||
};
|
||||
@@ -117,7 +118,7 @@ export const Connector = ({ connector }: Props) => {
|
||||
|
||||
{anchorPositions.map((anchor) => {
|
||||
return (
|
||||
<>
|
||||
<g key={anchor.id}>
|
||||
<Circle
|
||||
tile={CoordsUtils.add(anchor, drawOffset)}
|
||||
radius={18 * zoom}
|
||||
@@ -131,7 +132,7 @@ export const Connector = ({ connector }: Props) => {
|
||||
fill={theme.palette.common.white}
|
||||
strokeWidth={6 * zoom}
|
||||
/>
|
||||
</>
|
||||
</g>
|
||||
);
|
||||
})}
|
||||
</Svg>
|
||||
|
||||
@@ -19,7 +19,7 @@ export const TextBoxes = () => {
|
||||
return (
|
||||
<>
|
||||
{textBoxes.map((textBox) => {
|
||||
return <TextBox textBox={textBox} />;
|
||||
return <TextBox key={textBox.id} textBox={textBox} />;
|
||||
})}
|
||||
{mode.type === 'TEXTBOX' && (
|
||||
<TextBox
|
||||
|
||||
Reference in New Issue
Block a user