diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index b93303c0..298f6dfc 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -24,7 +24,6 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => { const { browserSteps, updateBrowserStepLabel, deleteBrowserStep } = useBrowserSteps(); const { socket } = useSocketStore(); - const handleLabelChange = (id: number, label: string) => { setLabels(prevLabels => ({ ...prevLabels, [id]: label })); if (!label.trim()) { @@ -57,7 +56,7 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => { }; const createSettingsObject = useCallback(() => { - const settings: Record = {}; + const settings: Record = {}; browserSteps.forEach(step => { if (step.label && step.selectorObj && step.selectorObj.selector) { settings[step.label] = step.selectorObj; @@ -66,7 +65,6 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => { return settings; }, [browserSteps]); - const stopCaptureAndEmitSettings = useCallback(() => { stopGetText(); const settings = createSettingsObject(); @@ -75,6 +73,12 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => { } }, [stopGetText, createSettingsObject, socket]); + const handleCaptureFullpage = () => { + }; + + const handleCaptureVisiblePart = () => { + }; + return ( @@ -85,7 +89,13 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => { {!getText && !getScreenshot && } {getText && } {!getText && !getScreenshot && } - {getScreenshot && } + {getScreenshot && ( + + + + + + )} @@ -121,8 +131,6 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => { ); }; - - export const ActionDescription = styled.p` margin-left: 15px; `;