From 685675a92f240775a5787afc31386cec8e67fe9d Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 8 Sep 2024 07:36:27 +0530 Subject: [PATCH] feat: handle state for output data --- src/pages/RecordingPage.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/RecordingPage.tsx b/src/pages/RecordingPage.tsx index f17163bf..6c2ac5d9 100644 --- a/src/pages/RecordingPage.tsx +++ b/src/pages/RecordingPage.tsx @@ -32,6 +32,7 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => { pair: null, index: 0, }); + const [showOutputData, setShowOutputData] = useState(false); const browserContentRef = React.useRef(null); const workflowListRef = React.useRef(null); @@ -40,6 +41,10 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => { const { setWidth } = useBrowserDimensionsStore(); const { browserId, setBrowserId } = useGlobalInfoStore(); + const handleShowOutputData = useCallback(() => { + setShowOutputData(true); + }, []); + const handleSelectPairForEdit = (pair: WhereWhatPair, index: number) => { setPairForEdit({ pair,