From eaa63e2139731d1d53f97cae67aa68d1846237f7 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 4 Sep 2024 04:26:53 +0530 Subject: [PATCH] feat: -rm pagination --- src/components/organisms/BrowserWindow.tsx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/components/organisms/BrowserWindow.tsx b/src/components/organisms/BrowserWindow.tsx index bb7b5bd3..b685281e 100644 --- a/src/components/organisms/BrowserWindow.tsx +++ b/src/components/organisms/BrowserWindow.tsx @@ -54,8 +54,6 @@ export const BrowserWindow = () => { const [showAttributeModal, setShowAttributeModal] = useState(false); const [attributeOptions, setAttributeOptions] = useState([]); const [selectedElement, setSelectedElement] = useState<{ selector: string, info: ElementInfo | null } | null>(null); - const [isSelectingPagination, setIsSelectingPagination] = useState(false); - const [listSelector, setListSelector] = useState(null); const [fields, setFields] = useState>({}); @@ -150,11 +148,6 @@ export const BrowserWindow = () => { const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '', highlighterData.elementInfo); - if (isSelectingPagination) { - socket?.emit('paginationSelected', { selector: highlighterData.selector }); - setIsSelectingPagination(false); - } - if (getText === true) { if (options.length === 1) { // Directly use the available attribute if only one option is present @@ -273,18 +266,6 @@ export const BrowserWindow = () => { setShowAttributeModal(false); }; - useEffect(() => { - const handleStartPaginationSelection = () => { - setIsSelectingPagination(true); - }; - - socket?.on('startPaginationSelection', handleStartPaginationSelection); - - return () => { - socket?.off('startPaginationSelection', handleStartPaginationSelection); - }; - }, [socket]); - return (
{