refactor: fix spelling and wording errors

This commit is contained in:
kasia.oczkowska
2024-06-12 13:57:26 +01:00
parent 96fba7fbb8
commit 4d79220b0c
6 changed files with 24 additions and 30 deletions

View File

@@ -12,7 +12,7 @@ export default function Edge({
targetX,
targetY,
source,
data: { layouted },
data: { laidOut },
}) {
const { stepCreationInProgress, flowActive, onAddStep } =
useContext(EdgesContext);
@@ -34,7 +34,7 @@ export default function Edge({
position: 'absolute',
transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,
pointerEvents: 'all',
visibility: layouted ? 'visible' : 'hidden',
visibility: laidOut ? 'visible' : 'hidden',
}}
disabled={stepCreationInProgress || flowActive}
>
@@ -52,6 +52,6 @@ Edge.propTypes = {
targetY: PropTypes.number.isRequired,
source: PropTypes.string.isRequired,
data: PropTypes.shape({
layouted: PropTypes.bool,
laidOut: PropTypes.bool,
}).isRequired,
};