refactor: rewrite useFlow and useStepConnection with RQ

This commit is contained in:
Rıdvan Akca
2024-03-22 17:44:05 +03:00
parent c8147370de
commit fc04a357c8
16 changed files with 174 additions and 365 deletions

View File

@@ -105,7 +105,7 @@ function generateValidationSchema(substeps) {
}
function FlowStep(props) {
const { collapsed, onChange, onContinue } = props;
const { collapsed, onChange, onContinue, flowId } = props;
const editorContext = React.useContext(EditorContext);
const contextButtonRef = React.useRef(null);
const step = props.step;
@@ -328,6 +328,7 @@ function FlowStep(props) {
: false
}
step={step}
flowId={flowId}
/>
)}
@@ -363,6 +364,7 @@ function FlowStep(props) {
deletable={!isTrigger}
onClose={onContextMenuClose}
anchorEl={anchorEl}
flowId={flowId}
/>
)}
</Wrapper>