feat: pass setShowOutputData prop

This commit is contained in:
karishmas6
2024-10-19 14:01:36 +05:30
parent 9f5f177581
commit c48657ced8

View File

@@ -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 />