feat: pass setShowOutputData prop
This commit is contained in:
@@ -40,9 +40,10 @@ const fetchWorkflow = (id: string, callback: (response: WorkflowFile) => void) =
|
|||||||
// 2. Handle non custom action steps
|
// 2. Handle non custom action steps
|
||||||
interface RightSidePanelProps {
|
interface RightSidePanelProps {
|
||||||
onFinishCapture: () => void;
|
onFinishCapture: () => void;
|
||||||
|
setShowOutputData: (show: boolean) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture }) => {
|
export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture, setShowOutputData }) => {
|
||||||
const [workflow, setWorkflow] = useState<WorkflowFile>(emptyWorkflow);
|
const [workflow, setWorkflow] = useState<WorkflowFile>(emptyWorkflow);
|
||||||
const [textLabels, setTextLabels] = useState<{ [id: string]: string }>({});
|
const [textLabels, setTextLabels] = useState<{ [id: string]: string }>({});
|
||||||
const [errors, setErrors] = useState<{ [id: string]: string }>({});
|
const [errors, setErrors] = useState<{ [id: string]: string }>({});
|
||||||
@@ -388,7 +389,7 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
|
|||||||
</SimpleBox>
|
</SimpleBox>
|
||||||
{
|
{
|
||||||
hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction ? (
|
hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction ? (
|
||||||
<SidePanelHeader />
|
<SidePanelHeader setShowOutputData={setShowOutputData} />
|
||||||
) : ""
|
) : ""
|
||||||
}
|
}
|
||||||
<ActionDescriptionBox />
|
<ActionDescriptionBox />
|
||||||
|
|||||||
Reference in New Issue
Block a user