Support workflows in record page layouts (#15471)
https://github.com/user-attachments/assets/275a02a3-7054-45d1-9423-75bb5223a8ba
This commit is contained in:
committed by
GitHub
parent
09c704c8bd
commit
5f0d24798a
+1
-10
@@ -2,13 +2,8 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho
|
||||
import { useWorkflowRun } from '@/workflow/hooks/useWorkflowRun';
|
||||
import { WorkflowRunDiagramCanvas } from '@/workflow/workflow-diagram/components/WorkflowRunDiagramCanvas';
|
||||
import { workflowDiagramStatusComponentState } from '@/workflow/workflow-diagram/states/workflowDiagramStatusComponentState';
|
||||
import styled from '@emotion/styled';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
const StyledContainer = styled.div`
|
||||
height: 100%;
|
||||
`;
|
||||
|
||||
export const WorkflowRunVisualizer = ({
|
||||
workflowRunId,
|
||||
}: {
|
||||
@@ -26,9 +21,5 @@ export const WorkflowRunVisualizer = ({
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<StyledContainer>
|
||||
<WorkflowRunDiagramCanvas workflowRunStatus={workflowRun.status} />
|
||||
</StyledContainer>
|
||||
);
|
||||
return <WorkflowRunDiagramCanvas workflowRunStatus={workflowRun.status} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user