From 4aac64d30cd9161edcac05e4dda6ebbcaa723056 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 28 Oct 2024 06:38:24 +0530 Subject: [PATCH] feat: notify on list selection --- src/components/organisms/BrowserWindow.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/organisms/BrowserWindow.tsx b/src/components/organisms/BrowserWindow.tsx index d0d31c05..29c215f0 100644 --- a/src/components/organisms/BrowserWindow.tsx +++ b/src/components/organisms/BrowserWindow.tsx @@ -7,6 +7,7 @@ import { Highlighter } from "../atoms/Highlighter"; import { GenericModal } from '../atoms/GenericModal'; import { useActionContext } from '../../context/browserActions'; import { useBrowserSteps, TextStep } from '../../context/browserSteps'; +import { useGlobalInfoStore } from '../../context/globalInfo'; interface ElementInfo { tagName: string; @@ -64,6 +65,7 @@ export const BrowserWindow = () => { const [paginationSelector, setPaginationSelector] = useState(''); const { socket } = useSocketStore(); + const { notify } = useGlobalInfoStore(); //const { width, height } = useBrowserDimensionsStore(); const { getText, getList, paginationMode, paginationType, limitMode } = useActionContext(); const { addTextStep, addListStep } = useBrowserSteps(); @@ -206,6 +208,7 @@ export const BrowserWindow = () => { if (getList === true && !listSelector) { setListSelector(highlighterData.selector); + notify(`info`, `List selected succesfully. Select the text data for extraction.`) setCurrentListId(Date.now()); setFields({}); } else if (getList === true && listSelector && currentListId) {