feat: handle state for output data
This commit is contained in:
@@ -32,6 +32,7 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => {
|
||||
pair: null,
|
||||
index: 0,
|
||||
});
|
||||
const [showOutputData, setShowOutputData] = useState(false);
|
||||
|
||||
const browserContentRef = React.useRef<HTMLDivElement>(null);
|
||||
const workflowListRef = React.useRef<HTMLDivElement>(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,
|
||||
|
||||
Reference in New Issue
Block a user