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
|
||||
interface RightSidePanelProps {
|
||||
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 [textLabels, setTextLabels] = useState<{ [id: string]: string }>({});
|
||||
const [errors, setErrors] = useState<{ [id: string]: string }>({});
|
||||
@@ -388,7 +389,7 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
|
||||
</SimpleBox>
|
||||
{
|
||||
hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction ? (
|
||||
<SidePanelHeader />
|
||||
<SidePanelHeader setShowOutputData={setShowOutputData} />
|
||||
) : ""
|
||||
}
|
||||
<ActionDescriptionBox />
|
||||
|
||||
Reference in New Issue
Block a user