feat: update react flow library and improve state management

This commit is contained in:
kasia.oczkowska
2025-03-21 15:07:28 +00:00
parent 245d127170
commit 50c3067db3
16 changed files with 323 additions and 558 deletions

View File

@@ -11,6 +11,8 @@ import InputCreator from 'components/InputCreator';
import FilterConditions from './FilterConditions';
import { StepPropType, SubstepPropType } from 'propTypes/propTypes';
const useNewFlowEditor = process.env.REACT_APP_USE_NEW_FLOW_EDITOR === 'true';
function FlowSubstep(props) {
const {
substep,
@@ -34,7 +36,11 @@ function FlowSubstep(props) {
title={name}
valid={validationStatus}
/>
<Collapse in={expanded} timeout="auto" unmountOnExit>
<Collapse
in={expanded}
timeout={useNewFlowEditor ? 0 : 'auto'}
unmountOnExit
>
<ListItem
sx={{
pt: 2,