From 53988dead71a50d047f2549cf3c0cc835774e152 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 8 Sep 2024 12:45:15 +0530 Subject: [PATCH] feat: !call startLimitMode in context --- src/context/browserActions.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/context/browserActions.tsx b/src/context/browserActions.tsx index 6d11c506..6590913a 100644 --- a/src/context/browserActions.tsx +++ b/src/context/browserActions.tsx @@ -44,11 +44,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const updateCustomLimit = (limit: string) => setCustomLimit(limit); const startPaginationMode = () => setPaginationMode(true); - const stopPaginationMode = () => { - setPaginationMode(false); - // Automatically start limit mode when pagination mode ends - setLimitMode(true); - }; + const stopPaginationMode = () => setPaginationMode(false); const startLimitMode = () => setLimitMode(true); const stopLimitMode = () => setLimitMode(false);