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

@@ -7,15 +7,9 @@ import { NodeWrapper, NodeInnerWrapper } from './style.js';
import { useContext } from 'react';
import { NodesContext } from '../EditorNew.jsx';
function FlowStepNode({ data: { collapsed, layouted }, id }) {
const {
openNextStep,
onStepOpen,
onStepClose,
onStepChange,
flowId,
steps,
} = useContext(NodesContext);
function FlowStepNode({ data: { collapsed, laidOut }, id }) {
const { openNextStep, onStepOpen, onStepClose, onStepChange, flowId, steps } =
useContext(NodesContext);
const step = steps.find(({ id: stepId }) => stepId === id);
@@ -23,7 +17,7 @@ function FlowStepNode({ data: { collapsed, layouted }, id }) {
<NodeWrapper
className="nodrag"
sx={{
visibility: layouted ? 'visible' : 'hidden',
visibility: laidOut ? 'visible' : 'hidden',
}}
>
<NodeInnerWrapper>
@@ -59,7 +53,7 @@ FlowStepNode.propTypes = {
id: PropTypes.string,
data: PropTypes.shape({
collapsed: PropTypes.bool.isRequired,
layouted: PropTypes.bool.isRequired,
laidOut: PropTypes.bool.isRequired,
}).isRequired,
};