diff --git a/src/context/browserActions.tsx b/src/context/browserActions.tsx index 57f59f3a..64c771b8 100644 --- a/src/context/browserActions.tsx +++ b/src/context/browserActions.tsx @@ -12,6 +12,7 @@ interface ActionContextProps { stopGetList: () => void; startGetScreenshot: () => void; stopGetScreenshot: () => void; + stopPaginationMode: () => void; } const ActionContext = createContext(undefined); @@ -23,6 +24,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const [paginationMode, setPaginationMode] = useState(false); const startPaginationMode = () => setPaginationMode(true); + const stopPaginationMode = () => setPaginationMode(false); const startGetText = () => setGetText(true); const stopGetText = () => setGetText(false); @@ -33,8 +35,10 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const startGetScreenshot = () => setGetScreenshot(true); const stopGetScreenshot = () => setGetScreenshot(false); + + return ( - + {children} );